/* ============================================================
   KAYASTH SAMAJ – Admin CSS  (aruncomputer.com style)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body { font-family: 'Inter', system-ui, sans-serif; }

/* ---- Page background ---- */
.bg-body-tertiary { background-color: #f4f6f9 !important; }
.app-content       { background-color: #f4f6f9 !important; }

/* ---- Prevent AdminLTE from restyling generic <a> tags in content ---- */
.app-content a:not(.btn):not(.nav-link):not(.dropdown-item):not(.sidebar-link):not(.brand-link):not([class]) {
    color: #0067C0;
}

/* ============================================================
   TOP NAVBAR  — sky-blue gradient
   ============================================================ */
.ks-topnav {
    background: linear-gradient(90deg, #003E92 0%, #0067C0 50%, #0078D4 100%) !important;
    border-bottom: none !important;
}
.ks-topnav .nav-link,
.ks-topnav .navbar-brand { color: #fff !important; }
.ks-topnav .nav-link:hover { color: rgba(255,255,255,0.85) !important; }

/* ---- Brand icon ---- */
.ks-brand-icon-sm {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ============================================================
   SIDEBAR  — white, clean, like aruncomputer.com
   ============================================================ */
.app-sidebar.bg-white {
    border-right: 1px solid #e3e8ef !important;
}

/* Section headers */
.app-sidebar .nav-header {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #999 !important;
    padding: 0.85rem 1rem 0.35rem !important;
}

/* Nav links */
.app-sidebar .nav-link {
    color: #333 !important;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    margin: 1px 8px;
    padding: 0.5rem 0.75rem !important;
    transition: background 0.18s, color 0.18s;
}
.app-sidebar .nav-link .nav-icon {
    color: #666 !important;
    font-size: 1rem;
    width: 20px;
    margin-right: 8px;
    transition: color 0.18s;
}
.app-sidebar .nav-link:hover {
    background: #EBF5FB !important;
    color: #0067C0 !important;
}
.app-sidebar .nav-link:hover .nav-icon {
    color: #0067C0 !important;
}
.app-sidebar .nav-link.active {
    background: #0067C0 !important;
    color: #fff !important;
    font-weight: 600;
}
.app-sidebar .nav-link.active .nav-icon {
    color: #fff !important;
}

/* Sidebar brand area */
.app-sidebar .sidebar-brand { background: #fff !important; }
.app-sidebar .brand-text    { color: #0067C0 !important; font-size: 0.95rem; }

/* ============================================================
   DASHBOARD BIG CARDS  (aruncomputer.com style)
   ============================================================ */
a.dash-card,
a.dash-card:link,
a.dash-card:visited {
    display: block !important;
    text-align: center !important;
    border-radius: 10px !important;
    padding: 2.5rem 1.5rem !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
    cursor: pointer !important;
}
a.dash-card:hover,
a.dash-card:focus {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 32px rgba(0,0,0,0.22) !important;
    color: #fff !important;
    text-decoration: none !important;
}
a.dash-card i {
    font-size: 3rem !important;
    margin-bottom: 0.875rem !important;
    display: block !important;
    color: #fff !important;
}
.dash-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff !important;
}
.dash-sub {
    font-size: 0.82rem;
    opacity: 0.88;
    color: #fff !important;
}

/* Card color variants */
a.dash-blue   { background-color: #0067C0 !important; }
a.dash-green  { background-color: #28a745 !important; }
a.dash-teal   { background-color: #17a2b8 !important; }
a.dash-purple { background-color: #6f42c1 !important; }
a.dash-red    { background-color: #dc3545 !important; }
a.dash-amber  { background-color: #fd7e14 !important; }
a.dash-indigo { background-color: #4f46e5 !important; }
a.dash-gray   { background-color: #6c757d !important; }
a.dash-dark   { background-color: #343a40 !important; }

/* ============================================================
   STAT COUNT CARDS (small row below big cards)
   ============================================================ */
.ks-count-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #EBF5FB;
    color: #0067C0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ============================================================
   PAGE HEADER (app-content-header)
   ============================================================ */
.app-content-header {
    background: #fff;
    border-bottom: 1px solid #e3e8ef;
    padding: 0.875rem 0;
    margin-bottom: 1.5rem;
}
.app-content-header h3 { color: #003E92; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.ks-flash-ok {
    background: #d1e7dd;
    border-left: 4px solid #198754;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #0a3622;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ks-flash-err {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #58151c;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================================
   TABLES
   ============================================================ */
.table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}
.table tbody td    { font-size: 0.875rem; vertical-align: middle; }
.table tbody tr:hover td { background: #f0f6ff; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background-color: #0067C0 !important;
    border-color: #0067C0 !important;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: #003E92 !important;
    border-color: #003E92 !important;
}
.btn-outline-primary {
    color: #0067C0 !important;
    border-color: #0067C0 !important;
    font-weight: 500;
}
.btn-outline-primary:hover {
    background-color: #0067C0 !important;
    color: #fff !important;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-label { font-size: 0.875rem; font-weight: 600; }
.form-control:focus, .form-select:focus {
    border-color: #0067C0;
    box-shadow: 0 0 0 0.2rem rgba(0,103,192,0.15);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.ks-login-logo {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #003E92, #0078D4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}
