*{
box-sizing:border-box;
margin:0;
padding:0;
font-family:Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
}

body{
background:#eef3f8;
color:#1f2937;
min-height:100vh;
}

/* LINK */
a{
text-decoration:none;
color:inherit;
}

/* LAYOUT */
.layout{
display:flex;
min-height:100vh;
width:100%;
}

/* SIDEBAR */

.sidebar{
width:250px;
background:#0f1c33;
color:#fff;
padding:20px;
}

.brand{
font-size:22px;
font-weight:800;
margin-bottom:20px;
}

.menu{
display:flex;
flex-direction:column;
gap:10px;
}

.menu a{
display:block;
padding:12px 14px;
border-radius:10px;
color:#dbeafe;
font-weight:700;
}

.menu a:hover{
background:#1976D2;
color:#fff;
}

.menu a.active{
background:#1976D2;
color:#fff;
}

/* MAIN */

.main{
flex:1;
padding:25px;
}

/* TOPBAR */

.topbar{
margin-bottom:20px;
}

.page-title h1{
font-size:28px;
margin-bottom:5px;
}

.page-title p{
color:#6b7280;
font-size:14px;
}

/* CARD */

.card{
background:#ffffff;
border-radius:14px;
padding:20px;
box-shadow:0 10px 20px rgba(0,0,0,0.05);
margin-bottom:20px;
}

/* GRID */

.grid{
display:flex;
flex-wrap:wrap;
gap:15px;
}

.grid-3 .stat-box{
flex:1;
min-width:180px;
}

.grid-2 > div{
flex:1;
min-width:200px;
}

/* STAT BOX */

.stat-box{
background:#f8fbff;
border:1px solid #dbeafe;
border-radius:12px;
padding:15px;
}

.stat-label{
font-size:14px;
color:#6b7280;
margin-bottom:5px;
}

.stat-value{
font-size:26px;
font-weight:800;
}

/* FORM */

.form-group{
margin-bottom:15px;
}

label{
display:block;
margin-bottom:6px;
font-weight:700;
}

input,
select,
textarea{
width:100%;
padding:12px;
border-radius:8px;
border:1px solid #dbe3ee;
font-size:14px;
}

/* BUTTON */

button,
.btn{
background:#1976D2;
color:#fff;
border:none;
padding:10px 14px;
border-radius:8px;
cursor:pointer;
font-weight:700;
}

.btn-secondary{
background:#64748b;
}

/* TABLE */

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

table{
width:100%;
border-collapse:collapse;
min-width:900px;
}

th{
background:#f1f5f9;
text-align:left;
padding:12px;
font-weight:800;
}

td{
padding:12px;
border-bottom:1px solid #e5e7eb;
}

/* BADGE */

.badge{
padding:6px 10px;
border-radius:20px;
font-size:12px;
font-weight:700;
}

.badge-success{
background:#dcfce7;
color:#166534;
}

.badge-warning{
background:#fef3c7;
color:#92400e;
}

.badge-danger{
background:#fee2e2;
color:#991b1b;
}

/* TOOLBAR SEARCH */

.toolbar{
display:flex;
gap:10px;
flex-wrap:wrap;
margin-bottom:15px;
}

/* ALERT */

.alert{
padding:12px;
border-radius:8px;
margin-bottom:15px;
font-weight:700;
}

.alert-success{
background:#dcfce7;
color:#166534;
}

.alert-danger{
background:#fee2e2;
color:#991b1b;
}

/* LOGIN */

.login-page{
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
background:#0f1c33;
}

.login-card{
background:#fff;
padding:30px;
border-radius:16px;
width:100%;
max-width:400px;
}

.login-card h1{
text-align:center;
margin-bottom:20px;
}

.login-note{
margin-top:10px;
font-size:13px;
color:#6b7280;
text-align:center;
}

/* MOBILE */

@media(max-width:900px){

.layout{
flex-direction:column;
}

.sidebar{
width:100%;
}

.menu{
flex-direction:row;
flex-wrap:wrap;
}

.menu a{
flex:1;
text-align:center;
}

.main{
padding:15px;
}

.page-title h1{
font-size:22px;
}

table{
min-width:700px;
}

}