/* ==========================================================================
   COLLEGE LIBRARY MANAGEMENT SYSTEM - "PROFESSIONAL POLISH" THEME
   Tailwind Slate / Cobalt / Emerald Design Palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --dark-sidebar: #0f172a;
    --dark-sidebar-border: #1e293b;
    --slate-bg: #f8fafc;
    --slate-border: #e2e8f0;
    --slate-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --success-color: #10b981;
    --success-light: #ecfdf5;
    --warning-color: #f59e0b;
    --warning-light: #fffbeb;
    --danger-color: #ef4444;
    --danger-light: #fef2f2;
    --info-color: #0284c7;
    --info-light: #f0f9ff;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--slate-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   NAVIGATION & TOPBAR SHELL
   ========================================================================== */

.navbar-custom {
    background-color: var(--dark-sidebar);
    border-bottom: 1px solid var(--dark-sidebar-border);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.brand-badge {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.navbar-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.navbar-brand small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #64748b;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.nav-link-custom {
    color: #94a3b8 !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link-custom:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.06);
}

.nav-link-custom.active {
    color: #ffffff !important;
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.user-badge-header {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar-pill {
    width: 26px;
    height: 26px;
    background-color: #334155;
    color: #60a5fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ==========================================================================
   STAT CARDS & METRIC WIDGETS
   ========================================================================== */

.stat-card {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.stat-subtext {
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

/* ==========================================================================
   TABLES & CARDS
   ========================================================================== */

.custom-table-card {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.custom-table-card .table {
    margin-bottom: 0;
}

.custom-table-card .table thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--slate-border);
    border-top: none;
    white-space: nowrap;
}

.custom-table-card .table tbody td {
    padding: 0.95rem 1.15rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 0.825rem;
}

.custom-table-card .table tbody tr:last-child td {
    border-bottom: none;
}

.custom-table-card .table tbody tr:hover {
    background-color: #f8fafc;
}

/* ==========================================================================
   BUTTONS & ACTION CONTROLS
   ========================================================================== */

.btn {
    font-weight: 600;
    font-size: 0.825rem;
    border-radius: 8px;
    padding: 0.45rem 0.95rem;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.btn-action-soft-primary {
    background-color: #eff6ff;
    color: #2563eb;
    border: none;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.btn-action-soft-primary:hover {
    background-color: #2563eb;
    color: #ffffff;
}

.btn-action-soft-danger {
    background-color: #fef2f2;
    color: #ef4444;
    border: none;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.btn-action-soft-danger:hover {
    background-color: #ef4444;
    color: #ffffff;
}

.btn-action-soft-success {
    background-color: #ecfdf5;
    color: #059669;
    border: none;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.btn-action-soft-success:hover {
    background-color: #059669;
    color: #ffffff;
}

/* ==========================================================================
   STATUS BADGES & TAGS
   ========================================================================== */

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9999px;
    letter-spacing: 0.01em;
}

.badge-available, .badge-approved, .badge-active {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-pending {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-issued {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-returned {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.badge-overdue, .badge-rejected, .badge-suspended {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   BOOK CARDS (STUDENT CATALOGUE)
   ========================================================================== */

.book-card {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.book-card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.85rem 1.15rem;
}

.book-card-body {
    padding: 1.15rem;
    flex-grow: 1;
}

.book-card-footer {
    padding: 0.85rem 1.15rem;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   AUTH PORTAL CARD
   ========================================================================== */

.auth-wrapper {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--slate-border);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    width: 100%;
    max-width: 460px;
}

.auth-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #1e293b;
}

/* ==========================================================================
   FOOTER & STATUS BAR
   ========================================================================== */

.app-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--slate-border);
    padding: 0.85rem 1.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.font-mono {
    font-family: var(--font-mono);
}

.fs-7 {
    font-size: 0.85rem;
}

.fs-8 {
    font-size: 0.75rem;
}
.fw-semibold {
    
    color: #ffffff !important;;
}
