/* =========================
   USER PANEL
========================= */

.panel-wrapper{

    display:flex;

    min-height:100vh;
}

.sidebar{

    width:260px;

    background:#0f172a;

    color:white;

    padding:25px;
}

.sidebar-logo{

    font-size:22px;

    font-weight:bold;

    margin-bottom:30px;

    text-align:center;
}

.sidebar-menu{

    list-style:none;
}

.sidebar-menu li{

    margin-bottom:10px;
}

.sidebar-menu a{

    display:block;

    padding:12px;

    color:white;

    text-decoration:none;

    border-radius:8px;
}

.sidebar-menu a:hover{

    background:#1e293b;
}

.main-content{

    flex:1;

    background:#f8fafc;

    padding:30px;
}

.topbar{

    background:white;

    padding:20px;

    border-radius:12px;

    margin-bottom:25px;

    box-shadow:
    0 2px 10px rgba(0,0,0,.05);
}

.stats{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:20px;
}

.stat-card{

    background:white;

    padding:25px;

    border-radius:15px;

    text-align:center;

    box-shadow:
    0 2px 15px rgba(0,0,0,.05);
}

.stat-card h3{

    color:#64748b;

    margin-bottom:10px;
}

.stat-card p{

    font-size:28px;

    font-weight:bold;

    color:#2563eb;
}
.table{

    width:100%;

    border-collapse:collapse;

    background:white;

    border-radius:12px;

    overflow:hidden;
}

.table th{

    background:#2563eb;

    color:white;

    padding:15px;

    text-align:left;
}

.table td{

    padding:15px;

    border-bottom:1px solid #e5e7eb;
}

.table tr:hover{

    background:#f8fafc;
}
.alert{

    background:#dcfce7;

    color:#166534;

    padding:15px;

    border-radius:10px;

    margin-bottom:20px;
}
.page-title{

    margin-bottom:25px;

    color:#1e293b;

    font-size:28px;
}

.stats{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:20px;

    margin-bottom:30px;
}

.stat-card{

    background:#fff;

    border-radius:12px;

    padding:25px;

    box-shadow:
    0 4px 15px rgba(0,0,0,.08);

    text-align:center;
}

.stat-card h3{

    color:#64748b;

    font-size:15px;

    margin-bottom:10px;
}

.stat-card p{

    font-size:32px;

    font-weight:700;

    color:#2563eb;
}

.card{

    background:#fff;

    padding:25px;

    border-radius:12px;

    box-shadow:
    0 4px 15px rgba(0,0,0,.08);
}

.table{

    width:100%;

    border-collapse:collapse;

    margin-top:20px;
}

.table th{

    background:#2563eb;

    color:#fff;

    padding:15px;

    text-align:left;
}

.table td{

    padding:15px;

    border-bottom:
    1px solid #e5e7eb;
}

.table tr:hover{

    background:#f8fafc;
}
.quick-actions{

    display:flex;

    gap:15px;

    margin:30px 0;

    flex-wrap:wrap;
}

.action-btn{

    background:#2563eb;

    color:white;

    padding:14px 20px;

    border-radius:10px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;
}

.action-btn:hover{

    background:#1d4ed8;

    transform:translateY(-2px);
}
.btn-success{

    background:#16a34a;

    color:white;

    padding:8px 14px;

    border-radius:6px;

    text-decoration:none;

    margin-right:5px;
}

.btn-danger{

    background:#dc2626;

    color:white;

    padding:8px 14px;

    border-radius:6px;

    text-decoration:none;
}
.progress-bar{

    width:100%;
    height:25px;
    background:#e5e7eb;
    border-radius:30px;
    overflow:hidden;
    margin-top:10px;
    margin-bottom:10px;

}

.progress-fill{

    height:100%;
    background:#22c55e;
    transition:0.5s;

}
.form-group{

    margin-bottom:15px;

}

.form-control{

    width:100%;

    padding:12px;

    border:1px solid #d1d5db;

    border-radius:8px;

}

.success-box{

    background:#dcfce7;

    color:#166534;

    padding:15px;

    border-radius:8px;

}

@media(max-width:900px){
    .panel-wrapper{display:block;min-height:100vh}
    .sidebar{width:100%;min-height:auto;padding:14px;position:relative}
    .sidebar-logo{margin-bottom:12px;padding:10px;font-size:20px}
    .sidebar-menu{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}
    .sidebar-menu li{margin:0;flex:0 0 auto}
    .sidebar-menu a{padding:10px 12px;white-space:nowrap}
    .main-content{padding:20px 14px;min-width:0}
    .topbar{padding:16px;margin-bottom:18px}
    .page-title{font-size:24px}
    .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .stat-card,.card{padding:18px}
    .card{overflow-x:auto}
    .table{min-width:680px}
}

@media(max-width:520px){
    .stats{grid-template-columns:1fr}
    .quick-actions{display:grid;grid-template-columns:1fr}
    .action-btn{text-align:center}
}
