@media (max-width: 768px) {
    .display-6 { font-size: 1.5rem; }
    .card-body { padding: 1rem; }
}

/* Sidebar styles */
.sidebar {
    width: 220px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 1020;
}
.sidebar .sidebar-brand { background: linear-gradient(90deg,#0d6efd,#6610f2); }
.sidebar .nav-link { color: rgba(255,255,255,0.9); padding: .6rem 1rem; }
.sidebar .nav-link:hover { background: rgba(255,255,255,0.03); color: #fff; }
.sidebar-footer { margin-top: auto; }

/* Push page content to the right when sidebar visible on md+ */
@media (min-width: 768px) {
    .content-with-sidebar { margin-left: 220px; }
}

/* Improve global typography and layout */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root{
    --sidebar-bg: #1f2729;
    --sidebar-accent: linear-gradient(90deg,#0d6efd,#6610f2);
    --muted: #6c757d;
}

html,body{height:100%;}
body{font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; color:#222; background:#fff;}

/* push content to the right when sidebar visible */
@media (min-width:768px){
    body{padding-left:220px; transition:padding-left .2s ease;}
}

/* Sidebar polished */
.sidebar{background:var(--sidebar-bg); box-shadow: 2px 0 8px rgba(0,0,0,0.08);}
.sidebar .sidebar-brand{padding:20px; display:flex; align-items:center; gap:12px;}
.sidebar .sidebar-brand a{color:#fff; font-weight:700; font-size:1rem}
.sidebar .nav{padding:12px 0}
.sidebar .nav-link{display:flex; align-items:center; gap:10px; padding:.9rem 1.2rem; color:rgba(255,255,255,.92); border-left:4px solid transparent; transition:all .15s ease}
.sidebar .nav-link i{width:18px; text-align:center; font-size:0.95rem}
.sidebar .nav-link:hover{background:rgba(255,255,255,0.03); transform:translateX(2px); border-left-color:rgba(255,255,255,0.08)}
.sidebar .nav-link.active{background:linear-gradient(90deg, rgba(13,110,253,0.12), rgba(102,16,242,0.08)); border-left-color:#0d6efd}
.sidebar .sidebar-footer{padding:16px}

/* Main content enhancements */
.container, .main-container{max-width:1100px}
h1{font-weight:700; letter-spacing:-0.5px;}

/* Forms, buttons and tables */
.form-control{border-radius:8px; border:1px solid #e6e9ed; box-shadow:none}
.btn{border-radius:8px}
.table thead th{border-bottom:2px solid #eef2f6}

/* Make modals and cards lighter and modern */
.card{border-radius:12px}
.modal-content{border-radius:12px}

/* Responsive tweaks */
@media (max-width:767px){
    body{padding-left:0}
    .sidebar{position:relative;height:auto;width:100%}
}

/* Login refinements (override previous rules) */
.login-card{max-width:520px;border-radius:18px}
.login-hero .card-body{padding:3rem}
.login-logo{max-width:80px}
.login-hero .form-label.small{font-weight:600;color:#6c757d}
.login-hero .btn-dark{border-radius:999px;padding:.9rem 1.2rem;font-weight:600}
.login-hero .text-muted{color:#8a98a6}

/* Offcanvas menu links */
.sidebar-nav .nav-link { padding: .75rem 1rem; color: #333; }
.sidebar-nav .nav-link:hover { background: #f1f1f1; }

.login-logo{max-width:100px}
/* Login hero styles */
body.login-hero {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    background: #0B1E33;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(198, 161, 91, 0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(24, 95, 165, 0.08) 0%, transparent 50%);
}
.login-card { max-width: 420px; width: 100%; border: none; border-radius: 12px; overflow: hidden; }
.login-card { border-radius: 22px; }
.login-hero .login-logo { max-width: 80px; }
.login-hero .card-body { padding: 3rem 2.5rem; }
.login-hero .form-control { border-radius: 999px; padding: .9rem 1.2rem; box-shadow: none; }
.login-hero .btn-dark { background: linear-gradient(90deg,#071528,#0a2740); border: none; color: #fff; }
.login-hero h2 { font-weight: 700; margin-bottom: .2rem; }
.login-hero .text-muted { color: rgba(0,0,0,0.55); }

@media (max-width: 575px) {
    .sidebar { position: static; height: auto; width: 100%; }
    .content-with-sidebar { margin-left: 0; }
}