/* ================================================
   Smart Hospital - Vibrant Clean Design
   ================================================ */

:root {
    /* New Vibrant Palette - "Trust & Tech" */
    --primary-color: #2563EB;
    /* Royal Blue */
    --primary-dark: #1E40AF;
    --primary-light: #EFF6FF;
    /* Very light blue bg */

    --secondary-color: #06B6D4;
    /* Cyan/Teal */
    --accent-color: #8B5CF6;
    /* Violet */

    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;

    /* Text Colors - High Contrast */
    --text-main: #1E293B;
    /* Slate 800 */
    --text-muted: #64748B;
    /* Slate 500 */
    --text-light: #94A3B8;
    /* Slate 400 */

    /* Backgrounds */
    --bg-body: #F8FAFC;
    /* Slate 50 */
    --bg-surface: #FFFFFF;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    /* Blue to Cyan */
    --gradient-accent: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    /* Violet to Pink */
    --gradient-glow: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);

    /* Shadows - Soft & Colorful "Glow" */
    --shadow-sm: 0 2px 4px rgba(148, 163, 184, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 0 4px 6px -2px rgba(37, 99, 235, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(37, 99, 235, 0.15), 0 10px 10px -5px rgba(37, 99, 235, 0.04);

    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --container-width: 1280px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-full {
    width: 100%;
    padding-left: 4rem;
    padding-right: 4rem;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 768px) {
    .container-full {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-glass:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Navigation - Clean White */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.0);
    /* Transparent initially */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 15px;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero Section - Airy & Bright */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--bg-body);
    overflow: hidden;
}

/* Animated Background Blobs */
.hero-bg-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(37, 99, 235, 0.1);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.1);
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.1);
    animation: blobFloat 8s infinite ease-in-out;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 15px;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.hero-title span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

/* Hero Right Side - Modern Composition */
.hero-image-wrapper {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-visual {
    width: 380px;
    height: 480px;
    background: white;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: visible;
    /* changed to see floating elements */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Floating Elements in Hero */
.float-card {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
    max-width: 260px;
    border: 1px solid rgba(241, 245, 249, 1);
}

.float-card i {
    font-size: 15px;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 10px;
    border-radius: 12px;
}

.card-pos-1 {
    top: 40px;
    right: -40px;
    animation-delay: 0s;
}

.card-pos-2 {
    bottom: 80px;
    left: -60px;
    animation-delay: 2s;
    z-index: 6;
}

.card-pos-3 {
    bottom: 20px;
    right: -20px;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* MJKN Dashboard - Glass Panel */
.dashboard-section {
    position: relative;
    margin-top: -80px;
    /* Overlap hero */
    z-index: 10;
    padding-bottom: 4rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    padding: 3rem;
    max-width: 100%;
    /* Changed to 100% for full width request */
    margin: 0 auto;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h2 {
    font-size: 15px;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-muted);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: var(--bg-body);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.feature-box:hover {
    background: white;
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 15px;
    transition: all 0.3s;
}

.feature-box:hover .feature-icon-box {
    background: var(--gradient-primary);
    color: white;
}

/* Services Pill Scroll */
.services-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 2rem 0.5rem;
    padding-bottom: 3rem;
    scrollbar-width: none;
}

.services-scroll-container::-webkit-scrollbar {
    display: none;
}

.service-pill {
    flex: 0 0 260px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--bg-body);
}

.service-pill:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-pill i {
    font-size: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: block;
}

/* Footer - Clean Dark Blue */
.footer-modern {
    background: #0B1120;
    /* Very Dark Blue, almost black */
    color: white;
    padding-top: 6rem;
    padding-bottom: 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-brand p {
    color: #94A3B8;
    line-height: 1.8;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-links a {
    color: #94A3B8;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 15px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #64748B;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .container-full {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-wrapper {
        display: none;
        /* Hide complex stacking on tablet */
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mjkn-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        display: none;
    }

    /* Mobile Menu Trigger Needed */
    .hero-title {
        font-size: 15px;
    }

    .nav-auth .mobile-toggle {
        display: block !important;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand, .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .mjkn-charts-row {
        grid-template-columns: 1fr !important;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .dashboard-header h2 {
        font-size: 15px;
    }
}

/* ================================================
   MJKN Dashboard Components (Reverted to CI2 Style)
   ================================================ */

#mjkn-dashboard {
    width: 100%;
}

/* Stats Grid */
.mjkn-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mjkn-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.mjkn-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mjkn-gradient-blue {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border-left: 4px solid #3b82f6;
}

.mjkn-gradient-green {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-left: 4px solid #10b981;
}

.mjkn-gradient-orange {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border-left: 4px solid #f59e0b;
}

.mjkn-gradient-red {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    border-left: 4px solid #ef4444;
}

.mjkn-gradient-purple {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    border-left: 4px solid #a855f7;
}

.mjkn-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.mjkn-gradient-blue .mjkn-stat-icon {
    color: #3b82f6;
    background-color: #eff6ff;
}

.mjkn-gradient-green .mjkn-stat-icon {
    color: #10b981;
    background-color: #ecfdf5;
}

.mjkn-gradient-orange .mjkn-stat-icon {
    color: #f59e0b;
    background-color: #fffbeb;
}

.mjkn-gradient-red .mjkn-stat-icon {
    color: #ef4444;
    background-color: #fef2f2;
}

.mjkn-gradient-purple .mjkn-stat-icon {
    color: #a855f7;
    background-color: #faf5ff;
}

.mjkn-stat-content {
    flex: 1;
}

.mjkn-stat-content h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.mjkn-stat-content p {
    font-size: 15px;
    color: #64748b;
    margin: 4px 0 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mjkn-stat-trend {
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
}

/* Charts Section */
.mjkn-charts-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 24px;
}

@media (max-width: 991px) {
    .mjkn-charts-row {
        grid-template-columns: 1fr;
    }
}

.mjkn-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.mjkn-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.mjkn-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.mjkn-filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8fafc;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.mjkn-date-input {
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 15px;
    color: #334155;
    background: white;
    outline: none;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mjkn-date-input:focus {
    border-color: #3b82f6;
}

.mjkn-btn-filter {
    padding: 6px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.mjkn-btn-filter:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* ================================================
   Unique Login Page Styles for smarthospital-app
   ================================================ */

/* ===== KEYFRAME ANIMATIONS ===== */

@keyframes loginBgShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes particleDrift {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }

    33% {
        transform: translateY(-40px) translateX(20px) scale(1.1);
        opacity: 0.4;
    }

    66% {
        transform: translateY(-20px) translateX(-15px) scale(0.9);
        opacity: 0.7;
    }

    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes formFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes brandBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    20% {
        transform: translateY(-8px) rotate(-5deg);
    }

    40% {
        transform: translateY(-4px) rotate(5deg);
    }

    60% {
        transform: translateY(-6px) rotate(-3deg);
    }

    80% {
        transform: translateY(-2px) rotate(2deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3), 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    50% {
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5), 0 0 0 8px rgba(37, 99, 235, 0);
    }
}

@keyframes floatLogin {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

@keyframes circleRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.15);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes circleRotateReverse {
    0% {
        transform: rotate(0deg) scale(1.1);
    }

    50% {
        transform: rotate(-180deg) scale(0.9);
    }

    100% {
        transform: rotate(-360deg) scale(1.1);
    }
}

@keyframes dotPop {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }
}

@keyframes welcomeReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes inputGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
    }
}

/* ===== GLOWING COLOR BORDER ON LOGIN CARD ===== */

/* Rotating conic-gradient behind the card */
@keyframes glowRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Breathing outer glow – color cycles via hue-rotate */
@keyframes cardGlowBreath {
    0% {
        box-shadow:
            0 0 20px 4px rgba(37, 99, 235, 0.35),
            0 0 60px 12px rgba(37, 99, 235, 0.15),
            0 25px 50px -12px rgba(15, 23, 42, 0.12);
        filter: hue-rotate(0deg);
    }

    25% {
        box-shadow:
            0 0 28px 6px rgba(6, 182, 212, 0.40),
            0 0 80px 16px rgba(6, 182, 212, 0.18),
            0 25px 50px -12px rgba(15, 23, 42, 0.12);
        filter: hue-rotate(60deg);
    }

    50% {
        box-shadow:
            0 0 28px 6px rgba(139, 92, 246, 0.40),
            0 0 80px 16px rgba(139, 92, 246, 0.18),
            0 25px 50px -12px rgba(15, 23, 42, 0.12);
        filter: hue-rotate(180deg);
    }

    75% {
        box-shadow:
            0 0 28px 6px rgba(236, 72, 153, 0.40),
            0 0 80px 16px rgba(236, 72, 153, 0.18),
            0 25px 50px -12px rgba(15, 23, 42, 0.12);
        filter: hue-rotate(270deg);
    }

    100% {
        box-shadow:
            0 0 20px 4px rgba(37, 99, 235, 0.35),
            0 0 60px 12px rgba(37, 99, 235, 0.15),
            0 25px 50px -12px rgba(15, 23, 42, 0.12);
        filter: hue-rotate(360deg);
    }
}

/* The spinning conic-gradient behind the card */
@keyframes conicSpin {
    0% {
        transform: rotate(0deg) scale(1.6);
    }

    100% {
        transform: rotate(360deg) scale(1.6);
    }
}

/* ===== LOGIN PAGE BODY ===== */

.login-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /* Background statis */
    background: linear-gradient(135deg, #e0f2fe, #eff6ff, #f0fdf4);
    overflow: hidden;
    position: relative;
}

/* Floating Particle Dots in Background */
.login-page-body::before,
.login-page-body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-page-body::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    top: -150px;
    right: -150px;
}

.login-page-body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

/* ===== LOGIN CARD GLOW WRAPPER ===== */

/*
 * Teknik: wrapper .login-card-glow-wrap memakai ::before berisi
 * conic-gradient yang berputar, lalu card di atasnya dengan
 * z-index lebih tinggi (menggunakan isolation: isolate).
 * Ini menghasilkan efek glowing border warna-warni yang mulus.
 */
.login-card-glow-wrap {
    position: relative;
    border-radius: 36px;
    /* sedikit lebih besar dari card */
    padding: 4px;
    /* lebar "border" glow */
    z-index: 10;
    animation: cardSlideUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Conic-gradient spinning layer */
.login-card-glow-wrap::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 40px;
    background: linear-gradient(135deg, #2563EB, #06B6D4, #8B5CF6, #2563EB);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.6;
}

/* Soft outer halo that breathes and color-shifts */
.login-card-glow-wrap::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 48px;
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.3),
            rgba(6, 182, 212, 0.25),
            rgba(139, 92, 246, 0.3));
    z-index: -2;
    filter: blur(28px);
    opacity: 0.4;
}

/* ===== LOGIN CARD ===== */

.login-card-vibrant {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    width: 100%;
    max-width: 1100px;
    height: 700px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(28px);
    border-radius: 32px;
    /* Glowing color shadow that breathes */
    animation: cardGlowBreath 6s ease-in-out 1s infinite;
    overflow: hidden;
    position: relative;
    z-index: 1;
    /* above the wrapper pseudo-elements */
}

/* ===== FORM SIDE (LEFT) ===== */

.login-form-side {
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 5;
    /* above star canvas (z-index: 3) */
    /* Stagger children via CSS */
    animation: formFadeIn 0.6s ease 0.3s both;
}

/* Brand icon animated bounce on hover */
.login-brand-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-decoration: none;
    transition: color 0.2s;
}

.login-brand-compact i {
    display: inline-block;
    transition: transform 0.3s;
    animation: brandBounce 3s ease-in-out 1.2s 1;
}

.login-brand-compact:hover i {
    animation: brandBounce 0.6s ease;
}

/* Welcome text reveal with delay */
.login-welcome h1 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    animation: welcomeReveal 0.5s ease 0.5s both;
}

.login-welcome p {
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: welcomeReveal 0.5s ease 0.65s both;
}

/* Staggered input group animation */
.login-form-side .input-group:nth-child(1) {
    animation: welcomeReveal 0.45s ease 0.75s both;
}

.login-form-side .input-group:nth-child(2) {
    animation: welcomeReveal 0.45s ease 0.85s both;
}

/* Input shimmer on focus */
.login-input:focus {
    border-color: var(--primary-color) !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background-image: linear-gradient(90deg,
            transparent 0%,
            rgba(37, 99, 235, 0.04) 50%,
            transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite, inputGlow 2s ease infinite;
}

/* ===== ANIMATED LOGIN BUTTON ===== */

.login-btn-primary {
    position: relative;
    overflow: hidden;
    animation: welcomeReveal 0.45s ease 1s both, btnPulse 3s ease-in-out 2s infinite;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.login-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0s;
}

.login-btn-primary:hover::before {
    animation: shimmer 0.6s ease;
    left: 100%;
}

.login-btn-primary:hover {
    transform: translateY(-3px) scale(1.02) !important;
    animation: none !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.5) !important;
}

.login-btn-primary:active {
    transform: translateY(1px) scale(0.98) !important;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3) !important;
}

/* ===== VISUAL SIDE (RIGHT) ===== */

.login-visual-side {
    position: relative;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 5;
}

.visual-pattern-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    opacity: 0.12;
    filter: blur(55px);
}

/* Animate the decorative circles */
.vp-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.vp-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

/* Floating illustration card */
.login-illustration {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}

.illustration-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.12),
        0 10px 10px -5px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    max-width: 320px;
    margin: 0 auto;
    animation: floatLogin 6s ease-in-out infinite;
    transform-origin: center center;
    transition: box-shadow 0.3s;
}

.illustration-card:hover {
    box-shadow:
        0 28px 36px -5px rgba(37, 99, 235, 0.18),
        0 14px 14px -5px rgba(37, 99, 235, 0.08);
}

/* Floating decorative dots on visual side */
.login-visual-side [style*="border-radius: 50%"] {
    animation: dotPop 3s ease-in-out infinite;
}

.login-visual-side [style*="border-radius: 50%"]:last-child {
    animation: dotPop 3s ease-in-out 1.5s infinite;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .login-card-vibrant {
        grid-template-columns: 1fr;
        height: auto;
        max-width: 500px;
        margin: 20px;
    }

    .login-visual-side {
        display: none;
    }

    .login-form-side {
        padding: 40px;
    }
}

/* ================================================
   Layout & Sidebar Styles
   → Dipindahkan ke: assets/css/sidebar.css
   ================================================ */


/* ================================================
   Dashboard Specific Styles
   ================================================ */
.dashboard-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.metric-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin: 8px 0;
}

.metric-label {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* ================================================
   Settings & Form Styles
   ================================================ */
.page-header {
    margin-bottom: 30px;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-sm {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 0.25rem;
    display: block;
}

.card-title {
    margin: 0;
    font-size: 15px;
    color: #2d3748;
}

.card-header-small {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: white;
}

.card-header-small h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Vibrant Gradients */
.header-vclaim {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Emerald */
.header-aplicare {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Blue */
.header-antrol {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Amber */
.header-icare {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

/* Pink */
.header-pcare {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Violet */
.header-apotek {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* Cyan */

.content-card {
    border-top: none;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 20px;
}

.form-row-balanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2d3748;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-icon-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.settings-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-row-balanced {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}