@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
    --bg:#0b1020;
    --bg2:#111827;
    --panel:#ffffff;
    --text:#0f172a;
    --muted:#64748b;
    --line:#e2e8f0;
    --primary:#5b5df0;
    --primary2:#7c3aed;
    --cyan:#06b6d4;
    --green:#10b981;
    --orange:#f59e0b;
    --red:#ef4444;
    --shadow:0 18px 45px rgba(15,23,42,.12);
    --radius:22px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    background:linear-gradient(135deg,#eef2ff,#f8fafc 45%,#ecfeff);
    color:var(--text);
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
}

.auth-page{
    min-height:100vh;
    display:grid;
    grid-template-columns:1.1fr .9fr;
}

.auth-left{
    background:
        radial-gradient(circle at top left, rgba(124,58,237,.28), transparent 32%),
        radial-gradient(circle at bottom right, rgba(6,182,212,.22), transparent 35%),
        linear-gradient(135deg,#0f172a,#111827,#1e1b4b);
    color:#fff;
    padding:60px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    position:relative;
    overflow:hidden;
}

.auth-left::before{
    content:"";
    position:absolute;
    width:320px;
    height:320px;
    right:-100px;
    top:-80px;
    border-radius:50%;
    background:rgba(255,255,255,.06);
}

.auth-left::after{
    content:"";
    position:absolute;
    width:260px;
    height:260px;
    left:-80px;
    bottom:-80px;
    border-radius:50%;
    background:rgba(255,255,255,.05);
}

.brand{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:28px;
    position:relative;
    z-index:2;
}

.brand-badge{
    width:52px;
    height:52px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,var(--primary),var(--primary2));
    box-shadow:0 12px 24px rgba(91,93,240,.35);
    font-size:22px;
}

.brand h2{
    font-size:26px;
    font-weight:800;
}

.brand span{
    display:block;
    color:#cbd5e1;
    font-size:13px;
    margin-top:3px;
}

.auth-copy{
    position:relative;
    z-index:2;
    max-width:620px;
}

.auth-copy h1{
    font-size:52px;
    line-height:1.1;
    margin-bottom:18px;
    font-weight:800;
}

.auth-copy p{
    font-size:16px;
    color:#dbeafe;
    line-height:1.8;
    margin-bottom:34px;
}

.feature-grid{
    display:grid;
    gap:16px;
    position:relative;
    z-index:2;
}

.feature-item{
    display:flex;
    gap:15px;
    align-items:flex-start;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:18px;
    backdrop-filter:blur(10px);
}

.feature-item i{
    width:44px;
    height:44px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.12);
    font-size:18px;
}

.feature-item h4{
    font-size:16px;
    margin-bottom:6px;
}

.feature-item p{
    margin:0;
    font-size:13px;
    line-height:1.6;
    color:#dbeafe;
}

.auth-right{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px;
}

.auth-card{
    width:100%;
    max-width:460px;
    background:rgba(255,255,255,.84);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.75);
    box-shadow:var(--shadow);
    border-radius:28px;
    padding:34px;
}

.auth-card h3{
    font-size:30px;
    margin-bottom:8px;
    font-weight:800;
}

.auth-card .sub{
    color:var(--muted);
    margin-bottom:26px;
    line-height:1.7;
}

.form-group{
    margin-bottom:18px;
}

.form-label{
    display:block;
    font-size:14px;
    font-weight:600;
    margin-bottom:8px;
}

.form-control{
    width:100%;
    border:1px solid var(--line);
    outline:none;
    border-radius:16px;
    padding:14px 16px;
    font-size:15px;
    background:#fff;
    transition:.25s ease;
}

.form-control:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(91,93,240,.1);
}

.password-wrap{
    position:relative;
}

.password-wrap button{
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    border:none;
    background:none;
    font-size:15px;
    color:var(--muted);
    cursor:pointer;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:none;
    border-radius:16px;
    padding:15px 18px;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:.25s ease;
}

.btn-primary{
    width:100%;
    color:#fff;
    background:linear-gradient(135deg,var(--primary),var(--primary2));
    box-shadow:0 14px 24px rgba(91,93,240,.28);
}

.btn-primary:hover{
    transform:translateY(-2px);
}

.demo-box{
    margin-top:20px;
    background:#f8fafc;
    border:1px dashed #cbd5e1;
    border-radius:18px;
    padding:16px;
    color:#334155;
    font-size:14px;
    line-height:1.8;
}

.alert{
    padding:14px 16px;
    border-radius:16px;
    margin-bottom:18px;
    font-size:14px;
    font-weight:600;
}

.alert-error{
    background:#fee2e2;
    color:#b91c1c;
    border:1px solid #fecaca;
}

.alert-success{
    background:#dcfce7;
    color:#15803d;
    border:1px solid #bbf7d0;
}

/* Dashboard */
.dashboard-body{
    background:#f3f7fc;
}

.layout{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:280px;
    background:linear-gradient(180deg,#0f172a,#111827,#1e1b4b);
    color:#fff;
    padding:26px 18px;
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    overflow-y:auto;
    box-shadow:8px 0 30px rgba(2,6,23,.18);
}

.sidebar .brand{
    margin-bottom:30px;
}

.nav-title{
    font-size:12px;
    letter-spacing:1.4px;
    text-transform:uppercase;
    color:#94a3b8;
    margin:6px 10px 14px;
}

.nav a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 16px;
    border-radius:16px;
    color:#cbd5e1;
    margin-bottom:10px;
    transition:.25s ease;
    font-weight:600;
}

.nav a:hover,
.nav a.active{
    background:rgba(255,255,255,.08);
    color:#fff;
    transform:translateX(4px);
}

.sidebar-bottom{
    margin-top:26px;
    padding:18px;
    border-radius:20px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.08);
    color:#dbeafe;
    font-size:13px;
    line-height:1.7;
}

.main{
    margin-left:280px;
    width:calc(100% - 280px);
    padding:28px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:24px;
    flex-wrap:wrap;
}

.topbar h1{
    font-size:30px;
    font-weight:800;
    margin-bottom:6px;
}

.topbar p{
    color:var(--muted);
}

.topbar-right{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}

.top-chip{
    background:#fff;
    border-radius:18px;
    padding:10px 14px;
    box-shadow:var(--shadow);
    color:#334155;
    font-weight:600;
}

.hero{
    background:linear-gradient(135deg,#4f46e5,#7c3aed 55%,#06b6d4);
    color:#fff;
    border-radius:30px;
    padding:30px;
    margin-bottom:24px;
    box-shadow:0 24px 50px rgba(79,70,229,.28);
    position:relative;
    overflow:hidden;
}

.hero::before{
    content:"";
    position:absolute;
    right:-60px;
    top:-60px;
    width:220px;
    height:220px;
    background:rgba(255,255,255,.10);
    border-radius:50%;
}

.hero::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-80px;
    width:200px;
    height:200px;
    background:rgba(255,255,255,.08);
    border-radius:50%;
}

.hero h2{
    font-size:32px;
    margin-bottom:10px;
    font-weight:800;
    position:relative;
    z-index:1;
}

.hero p{
    color:#e0e7ff;
    line-height:1.8;
    max-width:760px;
    position:relative;
    z-index:1;
}

.stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:24px;
}

.card{
    background:#fff;
    border-radius:24px;
    box-shadow:var(--shadow);
    padding:22px;
}

.stat-card{
    position:relative;
    overflow:hidden;
}

.stat-card::before{
    content:"";
    position:absolute;
    width:110px;
    height:110px;
    top:-18px;
    right:-18px;
    border-radius:50%;
    background:linear-gradient(135deg,rgba(91,93,240,.12),rgba(6,182,212,.12));
}

.stat-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.stat-icon{
    width:52px;
    height:52px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:20px;
}

.bg-primary{background:linear-gradient(135deg,var(--primary),var(--primary2));}
.bg-cyan{background:linear-gradient(135deg,#0891b2,#06b6d4);}
.bg-green{background:linear-gradient(135deg,#059669,#10b981);}
.bg-orange{background:linear-gradient(135deg,#ea580c,#f59e0b);}

.stat-card h3{
    color:var(--muted);
    font-size:14px;
    margin-bottom:8px;
}

.stat-number{
    font-size:32px;
    font-weight:800;
    margin-bottom:6px;
}

.stat-meta{
    color:#16a34a;
    font-size:13px;
    font-weight:700;
}

.grid-2{
    display:grid;
    grid-template-columns:1.6fr 1fr;
    gap:24px;
    margin-bottom:24px;
}

.panel-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.panel-title h3{
    font-size:20px;
    font-weight:800;
}

.soft-badge{
    padding:8px 12px;
    border-radius:999px;
    background:#eef2ff;
    color:#4338ca;
    font-size:12px;
    font-weight:700;
}

.table-wrap{
    overflow:auto;
}

.table{
    width:100%;
    border-collapse:collapse;
}

.table th,
.table td{
    text-align:left;
    padding:14px 12px;
    border-bottom:1px solid #eef2f7;
    font-size:14px;
}

.table th{
    color:#64748b;
    font-size:13px;
    font-weight:700;
}

.table td{
    color:#0f172a;
}

.empty-box{
    padding:22px;
    border-radius:18px;
    background:#f8fafc;
    border:1px dashed #cbd5e1;
    text-align:center;
    color:#64748b;
}

.info-list{
    display:grid;
    gap:14px;
}

.info-item{
    display:flex;
    gap:14px;
    align-items:flex-start;
    padding:14px;
    border-radius:18px;
    background:#f8fafc;
}

.info-item i{
    width:42px;
    height:42px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    flex-shrink:0;
}

.info-item h4{
    font-size:15px;
    margin-bottom:4px;
}

.info-item p{
    color:#64748b;
    font-size:13px;
    line-height:1.6;
}

/* Import page */
.upload-area{
    border:2px dashed #cbd5e1;
    border-radius:24px;
    padding:34px;
    background:#f8fafc;
    text-align:center;
    margin-bottom:22px;
}

.upload-area i{
    font-size:52px;
    color:var(--primary);
    margin-bottom:14px;
}

.upload-area h3{
    font-size:22px;
    margin-bottom:8px;
}

.upload-area p{
    color:var(--muted);
    margin-bottom:16px;
    line-height:1.7;
}

.small-muted{
    color:var(--muted);
    font-size:13px;
    line-height:1.7;
}

.dual-grid{
    display:grid;
    grid-template-columns:1.5fr 1fr;
    gap:24px;
}

.kpi-box{
    background:linear-gradient(135deg,#f8fafc,#eef2ff);
    border:1px solid #e2e8f0;
    border-radius:20px;
    padding:18px;
    margin-top:20px;
}

.kpi-box strong{
    display:block;
    margin-bottom:8px;
}

.footer-note{
    margin-top:24px;
    color:#64748b;
    font-size:13px;
}

@media(max-width:1100px){
    .stats{
        grid-template-columns:repeat(2,1fr);
    }
    .grid-2,
    .dual-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:900px){
    .auth-page{
        grid-template-columns:1fr;
    }
    .auth-left{
        padding:36px 26px;
    }
    .auth-copy h1{
        font-size:38px;
    }
    .sidebar{
        position:relative;
        width:100%;
        bottom:auto;
    }
    .layout{
        display:block;
    }
    .main{
        margin-left:0;
        width:100%;
        padding:18px;
    }
}

@media(max-width:640px){
    .stats{
        grid-template-columns:1fr;
    }
    .auth-card{
        padding:24px;
    }
    .topbar h1{
        font-size:24px;
    }
}
