:root{

    --primary:#2563eb;
    --primary-dark:#1d4ed8;

    --secondary:#7c3aed;
    --success:#16a34a;
    --danger:#dc2626;
    --warning:#f59e0b;

    --dark:#0f172a;
    --gray:#64748b;
    --light:#f8fafc;

    --border:#e2e8f0;

    --radius-xl:34px;
    --radius-lg:24px;
    --radius-md:18px;

    --shadow:
        0 18px 50px rgba(15,23,42,0.06);

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Inter',sans-serif;

    background:#f1f5f9;

    color:var(--dark);

    min-height:100vh;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
}

.container{
    width:min(1400px,92%);
    margin:auto;
}

.page-padding{
    padding:35px 0;
}

.card{

    background:#fff;

    border-radius:var(--radius-xl);

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    padding:30px;
}

.hero{

    border-radius:40px;

    padding:50px;

    color:#fff;

    margin-bottom:30px;

    overflow:hidden;

    position:relative;
}

.hero::before{

    content:'';

    position:absolute;

    top:-100px;
    right:-100px;

    width:300px;
    height:300px;

    border-radius:50%;

    background:rgba(255,255,255,0.08);
}

.hero h1{

    font-size:48px;

    margin-bottom:16px;

    font-weight:900;

    position:relative;
}

.hero p{

    line-height:2;

    font-size:16px;

    max-width:900px;

    position:relative;
}

.hero.blue{

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );
}

.hero.purple{

    background:
    linear-gradient(
        135deg,
        #7c3aed,
        #4f46e5
    );
}

.hero.green{

    background:
    linear-gradient(
        135deg,
        #059669,
        #047857
    );
}

.hero.red{

    background:
    linear-gradient(
        135deg,
        #dc2626,
        #991b1b
    );
}

.hero.dark{

    background:
    linear-gradient(
        135deg,
        #0f172a,
        #1e293b
    );
}

.topbar{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-bottom:28px;

    gap:20px;
}

.page-title{

    font-size:44px;

    font-weight:900;
}

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    padding:15px 24px;

    border:none;

    border-radius:20px;

    cursor:pointer;

    font-weight:800;

    transition:0.25s;
}

.btn:hover{

    transform:translateY(-2px);
}

.btn-primary{

    background:
    linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    color:#fff;
}

.btn-success{

    background:
    linear-gradient(
        135deg,
        #16a34a,
        #15803d
    );

    color:#fff;
}

.btn-danger{

    background:
    linear-gradient(
        135deg,
        #dc2626,
        #991b1b
    );

    color:#fff;
}

.btn-dark{

    background:
    linear-gradient(
        135deg,
        #0f172a,
        #1e293b
    );

    color:#fff;
}

.btn-light{

    background:#eff6ff;

    color:var(--primary);
}

.grid-2{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:24px;
}

.grid-3{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(320px,1fr));

    gap:24px;
}

.grid-4{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(260px,1fr));

    gap:24px;
}

.stat-card{

    background:#fff;

    border-radius:30px;

    padding:28px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);
}

.stat-card h3{

    font-size:16px;

    color:var(--gray);

    margin-bottom:16px;
}

.stat-card .number{

    font-size:42px;

    font-weight:900;
}

.form-group{

    margin-bottom:20px;
}

.form-group label{

    display:block;

    margin-bottom:10px;

    font-weight:800;
}

.form-control{

    width:100%;

    padding:16px 18px;

    border-radius:18px;

    border:1px solid #cbd5e1;

    background:#fff;

    font-size:15px;

    font-family:inherit;

    transition:0.2s;
}

.form-control:focus{

    outline:none;

    border-color:#2563eb;

    box-shadow:
        0 0 0 4px rgba(37,99,235,0.1);
}

textarea.form-control{

    min-height:130px;

    resize:vertical;
}

.table-wrapper{

    overflow:auto;

    border-radius:24px;
}

table{

    width:100%;

    border-collapse:collapse;

    background:#fff;
}

table th{

    background:#eff6ff;

    color:#1d4ed8;

    text-align:left;

    padding:18px;

    font-size:14px;
}

table td{

    padding:18px;

    border-top:1px solid #e2e8f0;

    vertical-align:top;
}

.badge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:10px 14px;

    border-radius:999px;

    font-size:12px;

    font-weight:900;
}

.badge-success{

    background:#dcfce7;

    color:#15803d;
}

.badge-danger{

    background:#fee2e2;

    color:#b91c1c;
}

.badge-warning{

    background:#fef3c7;

    color:#b45309;
}

.badge-primary{

    background:#dbeafe;

    color:#1d4ed8;
}

.alert{

    padding:18px 22px;

    border-radius:20px;

    margin-bottom:24px;

    font-weight:800;
}

.alert-success{

    background:#dcfce7;

    color:#166534;
}

.alert-danger{

    background:#fee2e2;

    color:#991b1b;
}

.alert-warning{

    background:#fef3c7;

    color:#92400e;
}

.login-wrapper{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:30px;
}

.login-card{

    width:100%;
    max-width:520px;

    background:#fff;

    border-radius:40px;

    padding:40px;

    box-shadow:
        0 25px 70px rgba(15,23,42,0.1);

    border:1px solid #e2e8f0;
}

.login-logo{

    text-align:center;

    margin-bottom:30px;
}

.login-logo h1{

    font-size:42px;

    font-weight:900;

    color:#2563eb;
}

.login-logo p{

    color:#64748b;

    margin-top:10px;

    line-height:1.8;
}

.empty-state{

    background:#fff;

    padding:80px 30px;

    border-radius:34px;

    text-align:center;

    color:#64748b;

    border:1px dashed #cbd5e1;
}

.empty-state h3{

    font-size:28px;

    margin-bottom:12px;

    color:#0f172a;
}

.sidebar-layout{

    display:grid;

    grid-template-columns:300px 1fr;

    gap:24px;
}

.sidebar{

    background:#0f172a;

    color:#fff;

    border-radius:34px;

    padding:30px;

    min-height:calc(100vh - 70px);
}

.sidebar h2{

    font-size:32px;

    margin-bottom:30px;

    font-weight:900;
}

.sidebar-menu{

    display:flex;

    flex-direction:column;

    gap:10px;
}

.sidebar-menu a{

    color:#cbd5e1;

    padding:16px 18px;

    border-radius:18px;

    font-weight:700;

    transition:0.25s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active{

    background:#1e293b;

    color:#fff;
}

.content-area{

    min-width:0;
}

@media(max-width:1100px){

    .sidebar-layout{

        grid-template-columns:1fr;
    }

    .sidebar{

        min-height:auto;
    }

    .grid-2{

        grid-template-columns:1fr;
    }
}

@media(max-width:700px){

    .container{
        width:min(94%,100%);
    }

    .page-padding{
        padding:20px 0;
    }

    .hero{
        padding:35px 24px;
    }

    .hero h1{
        font-size:34px;
    }

    .page-title{
        font-size:34px;
    }

    .topbar{

        flex-direction:column;

        align-items:flex-start;
    }

    .login-card{

        padding:30px 22px;
    }

    .card,
    .stat-card{

        padding:22px;
    }
}