/* 
 * Professor Binayak S Choudhury CMS - Admin Stylesheet
 * Integrated with Bootstrap 5.3 CDN
 */

:root {
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #0f172a;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --body-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
}

h1, h2, h3, h4, h5, h6, .card-title, .sidebar-header {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: #ffffff;
    min-height: 100vh;
    transition: all 0.3s ease;
    z-index: 100;
}

.sidebar-header {
    background-color: rgba(0, 0, 0, 0.15);
}

.sidebar-item a {
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 6px;
    margin: 2px 10px;
    transition: all 0.2s ease;
}

.sidebar-item a:hover {
    background-color: var(--sidebar-hover);
    color: #ffffff;
    transform: translateX(3px);
}

.sidebar-item.active a {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-footer {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Topbar */
.admin-topbar {
    min-height: 64px;
}

/* Stat Cards */
.stat-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.stat-num {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Beautified Form Styles */
.form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    border-color: #cbd5e1;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
}

.form-text {
    color: #64748b;
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

.input-group-text {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
    border-radius: 8px 0 0 8px;
}

/* Custom Check & Switches */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Modern Card Customization */
.card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    background-color: var(--card-bg);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
}

/* Modernized Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #475569;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
}

.table td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    font-size: 0.92rem;
    border-bottom: 1px solid #f1f5f9;
}

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

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 0.32rem 0.75rem;
    font-size: 0.82rem;
    border-radius: 6px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

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

/* Auth / Login Page */
.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 20px;
}

.auth-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 38px 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
