
.admin-sidebar {
    width: 150px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: #0d47a1;
}

.page-wrapper {
    margin-left: 150px; /* THIS FIXES OVERLAP */
}

.admin-content {
    padding: 20px;
}
/* ===== ADMIN LAYOUT ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Sidebar */
.admin-sidebar {
    width: 150px;
    height: 100vh;
    background: #0d47a1; /* corporate blue */
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px 0;
}

/* Sidebar title */
.sidebar-header {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    font-size: 18px;
    margin: 0;
}

/* Navigation links */
.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    transition: 0.3s;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== Corporate Header ===== */
.main-header {
    background: #0d47a1; /* corporate blue */
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.main-header .container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.main-header .logo {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    color:white;
}

/* Navigation */
.main-header .nav {
    display: flex;
    gap: 20px;
}

.main-header .nav a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.main-header .nav a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 10px;
    }

    .main-header .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    height:100%;
}

body{
    font-family: Inter, Arial, sans-serif;
    background:#f5f7fb;
    color:#1e293b;
    line-height:1.5;
}

/* =========================
   VARIABLES
========================= */

:root{
    --primary:#0f172a;
    --secondary:#334155;
    --accent:#2563eb;
    --accent-hover:#1d4ed8;
    --success:#16a34a;
    --danger:#dc2626;
    --warning:#f59e0b;

    --white:#ffffff;
    --border:#e2e8f0;
    --background:#f5f7fb;
}

/* =========================
   LINKS
========================= */

a{
    color:var(--accent);
    text-decoration:none;
}

a:hover{
    text-decoration:underline;
}

/* =========================
   LOGIN PAGE
========================= */

.login-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.login-card{
    width:100%;
    max-width:420px;
    background:var(--white);
    padding:40px;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.login-logo{
    text-align:center;
    margin-bottom:30px;
}

.login-logo h1{
    font-size:32px;
    color:var(--primary);
}

.login-logo p{
    color:#64748b;
    margin-top:5px;
}

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.form-control{
    width:100%;
    height:48px;
    border:1px solid var(--border);
    border-radius:8px;
    padding:0 15px;
    font-size:15px;
}

.form-control:focus{
    outline:none;
    border-color:var(--accent);
}

/* =========================
   BUTTONS
========================= */

.btn{
    border:none;
    cursor:pointer;
    border-radius:8px;
    font-size:15px;
    font-weight:600;
    transition:0.3s;
}

.btn-primary{
    width:100%;
    height:48px;
    background:var(--accent);
    color:#fff;
}

.btn-primary:hover{
    background:var(--accent-hover);
}

/* =========================
   HEADER
========================= */

.header{
    background:#fff;
    border-bottom:1px solid var(--border);
    padding:15px 25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:22px;
    font-weight:700;
    color:var(--primary);
}

/* =========================
   DASHBOARD LAYOUT
========================= */

.wrapper{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background:var(--primary);
    color:#fff;
    padding:25px 0;
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    margin-bottom:5px;
}

.sidebar a{
    color:#cbd5e1;
    display:block;
    padding:12px 25px;
}

.sidebar a:hover,
.sidebar a.active{
    background:rgba(255,255,255,0.08);
    color:#fff;
    text-decoration:none;
}

.main-content{
    flex:1;
    padding:25px;
}

/* =========================
   CARDS
========================= */

.card{
    background:#fff;
    border-radius:12px;
    padding:20px;
    border:1px solid var(--border);
    margin-bottom:20px;
}

.card-title{
    font-size:18px;
    font-weight:600;
    margin-bottom:15px;
}

/* =========================
   TABLES
========================= */

.table{
    width:100%;
    border-collapse:collapse;
}

.table th{
    background:#f8fafc;
    text-align:left;
    padding:12px;
    border-bottom:1px solid var(--border);
}

.table td{
    padding:12px;
    border-bottom:1px solid var(--border);
}

.table tr:hover{
    background:#fafafa;
}

/* =========================
   ALERTS
========================= */

.alert{
    padding:12px 15px;
    border-radius:8px;
    margin-bottom:20px;
}

.alert-success{
    background:#dcfce7;
    color:#166534;
}

.alert-danger{
    background:#fee2e2;
    color:#991b1b;
}

.alert-warning{
    background:#fef3c7;
    color:#92400e;
}

/* =========================
   BADGES
========================= */

.badge{
    display:inline-block;
    padding:5px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.badge-success{
    background:#dcfce7;
    color:#166534;
}

.badge-danger{
    background:#fee2e2;
    color:#991b1b;
}

.badge-warning{
    background:#fef3c7;
    color:#92400e;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    .sidebar{
        width:70px;
    }

    .sidebar a{
        padding:12px 10px;
        text-align:center;
    }

    .main-content{
        padding:15px;
    }

}