*{
    box-sizing:border-box;
}

:root{
    --ddpv-blue:#003c78;
    --ddpv-dark:#0f2742;
    --ddpv-light:#f4f6f8;
    --ddpv-border:#e5e7eb;
    --ddpv-text:#1f2933;
    --ddpv-muted:#667085;
    --ddpv-card:#ffffff;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:var(--ddpv-light);
    color:var(--ddpv-text);
    font-size:15px;
}

a{
    color:var(--ddpv-blue);
}

.layout{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:280px;
    background:var(--ddpv-dark);
    color:#fff;
    padding:22px;
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    overflow-y:auto;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:30px;
}

.brand img{
    width:60px;
    height:auto;
    background:#fff;
    border-radius:12px;
    padding:7px;
}

.brand strong{
    display:block;
    font-size:18px;
}

.brand span{
    display:block;
    color:#d9e3ef;
    font-size:13px;
    margin-top:2px;
}

nav a{
    display:block;
    color:#fff;
    text-decoration:none;
    padding:12px 12px;
    border-radius:9px;
    margin-bottom:6px;
    font-weight:600;
}

nav a:hover{
    background:rgba(255,255,255,.13);
}

.content{
    margin-left:280px;
    padding:30px;
    width:calc(100% - 280px);
}

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    margin-bottom:22px;
}

.page-header h1{
    margin:0;
    font-size:30px;
    color:#101828;
}

.text-muted{
    color:var(--ddpv-muted);
}

.small{
    font-size:13px;
}

.card{
    background:var(--ddpv-card);
    border:1px solid var(--ddpv-border);
    border-radius:16px;
    padding:24px;
    margin-bottom:22px;
    box-shadow:0 10px 28px rgba(15,23,42,.06);
}

.card h2{
    margin-top:0;
    color:var(--ddpv-blue);
}

.card h3{
    color:var(--ddpv-blue);
}

.grid{
    display:grid;
    gap:16px;
}

.grid-2{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.grid-3{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.form-row{
    display:flex;
    flex-direction:column;
    gap:7px;
}

label{
    font-weight:700;
    font-size:14px;
}

input,
select,
textarea{
    width:100%;
    border:1px solid #cfd7e2;
    border-radius:10px;
    padding:11px 12px;
    font-size:15px;
    background:#fff;
    color:#111827;
}

input:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:var(--ddpv-blue);
    box-shadow:0 0 0 3px rgba(0,60,120,.12);
}

input[readonly]{
    background:#f9fafb;
    color:#4b5563;
}

textarea{
    resize:vertical;
}

.checkbox-row label{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:10px;
    font-weight:600;
}

.checkbox-row input{
    width:auto;
}

.btn{
    display:inline-block;
    border:0;
    border-radius:10px;
    background:var(--ddpv-blue);
    color:#fff;
    padding:11px 16px;
    text-decoration:none;
    font-weight:700;
    cursor:pointer;
    line-height:1.2;
}

.btn:hover{
    filter:brightness(.96);
}

.btn-secondary{
    background:#e5e7eb;
    color:#111827;
}

.flash{
    padding:14px 16px;
    border-radius:11px;
    margin-bottom:18px;
    border:1px solid transparent;
}

.flash.error{
    background:#fee2e2;
    color:#991b1b;
    border-color:#fecaca;
}

.flash.success{
    background:#dcfce7;
    color:#166534;
    border-color:#bbf7d0;
}

.flash.warning{
    background:#fef3c7;
    color:#92400e;
    border-color:#fde68a;
}

.table-wrap{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

th,
td{
    padding:13px 11px;
    border-bottom:1px solid var(--ddpv-border);
    text-align:left;
    vertical-align:top;
}

th{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.03em;
    color:var(--ddpv-muted);
    background:#f9fafb;
}

tr:hover td{
    background:#fbfdff;
}

.badge{
    display:inline-block;
    background:#eef2ff;
    color:#3730a3;
    border-radius:999px;
    padding:5px 10px;
    font-size:12px;
    font-weight:700;
}

.stat-card strong{
    font-size:34px;
    display:block;
    color:var(--ddpv-blue);
}

.stat-card span{
    color:var(--ddpv-muted);
    font-weight:600;
}

.login-body{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:24px;
    background:
        radial-gradient(circle at top left, rgba(0,60,120,.16), transparent 30%),
        radial-gradient(circle at bottom right, rgba(15,39,66,.18), transparent 30%),
        var(--ddpv-light);
}

.login-box{
    width:420px;
    max-width:100%;
    background:#fff;
    border:1px solid var(--ddpv-border);
    border-radius:18px;
    box-shadow:0 16px 45px rgba(15,23,42,.14);
    padding:36px;
    text-align:center;
}

.login-box img{
    max-width:190px;
    height:auto;
    margin-bottom:18px;
}

.login-box h1{
    margin:0 0 24px;
    color:#101828;
}

.login-box form{
    text-align:left;
}

.login-box .btn{
    width:100%;
    margin-top:8px;
}

code{
    display:inline-block;
    background:#f3f4f6;
    border:1px solid #e5e7eb;
    border-radius:8px;
    padding:5px 8px;
}

@media(max-width:900px){
    .layout{
        display:block;
    }

    .sidebar{
        position:static;
        width:100%;
        border-radius:0;
    }

    .content{
        margin-left:0;
        width:100%;
        padding:20px;
    }

    .grid-2,
    .grid-3{
        grid-template-columns:1fr;
    }

    .page-header{
        display:block;
    }

    .page-header h1{
        font-size:25px;
    }
}
