/* ============================================================
   Sri Ram Sena Dashboard — Custom Theme
   Brand: Saffron (#FF6B00) · Deep Red (#8B1A1A) · Gold (#D4AF37)
   ============================================================ */

:root {
    --saffron:       #FF6B00;
    --saffron-light: #FF9B45;
    --saffron-pale:  #FFF0E0;
    --deep-red:      #8B1A1A;
    --maroon:        #C0392B;
    --gold:          #D4AF37;
    --gold-light:    #F4D03F;
    --cream:         #FFF8F0;
    --dark:          #1C0800;
    --sidebar-bg:    #140300;
    --topbar-bg:     #1C0800;
    --text-dark:     #2C1810;
    --text-medium:   #5D4037;
    --card-border:   rgba(212,175,55,0.15);
    --shadow:        0 4px 20px rgba(139,26,26,0.10);
    --shadow-hover:  0 8px 30px rgba(139,26,26,0.20);
    --sidebar-width: 260px;
    --topbar-height: 60px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    margin: 0;
    font-size: 14px;
}

/* ---- SIDEBAR ---- */
#sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease, transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,107,0,0.3) transparent;
}
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255,107,0,0.3); border-radius: 2px; }

.sidebar-brand {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.sidebar-brand img { width: 36px; height: 36px; object-fit: contain; }
.sidebar-brand-text { line-height: 1.2; }
.sidebar-brand-name {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    display: block;
}
.sidebar-brand-tag {
    color: var(--gold);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
}

.sidebar-section {
    padding: 14px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.28);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.sidebar-nav { padding: 0 10px; flex: 1; }
.sidebar-nav .nav-item { margin-bottom: 2px; }
.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.65);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.sidebar-nav .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
    flex-shrink: 0;
}
.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}
.sidebar-nav .nav-link:hover i { color: var(--saffron); }
.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--saffron), var(--deep-red));
    color: #fff;
    font-weight: 600;
}
.sidebar-nav .nav-link.active i { color: #fff; }

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
}
.sidebar-user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--saffron), var(--deep-red));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px;
    flex-shrink: 0; overflow: hidden;
}
.sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-name { font-weight: 600; color: #fff; line-height: 1.2; }
.sidebar-user-role { color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- TOPBAR ---- */
#topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--topbar-height);
    background: var(--topbar-bg);
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.3px;
    flex: 1;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
    font-size: 14px;
}
.topbar-btn:hover { background: rgba(255,107,0,0.2); border-color: var(--saffron); color: var(--saffron); }
.topbar-btn.active { background: rgba(255,107,0,0.15); color: var(--saffron); }
.topbar-badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--saffron);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
#sidebarToggle {
    display: none;
    background: none; border: none;
    color: rgba(255,255,255,0.7);
    font-size: 18px; cursor: pointer; padding: 4px;
}

/* ---- MAIN CONTENT ---- */
#main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 28px 28px 40px;
    min-height: calc(100vh - var(--topbar-height));
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-title {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--deep-red);
    margin: 0;
}
.page-subtitle { font-size: 13px; color: var(--text-medium); margin: 2px 0 0; }
.breadcrumb { background: none; padding: 0; margin: 0; font-size: 12px; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-medium); }
.breadcrumb-item.active { color: var(--text-medium); }
.breadcrumb-item a { color: var(--saffron); text-decoration: none; }

/* ---- CARDS ---- */
.card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-header {
    background: none;
    border-bottom: 1px solid var(--card-border);
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-header i { color: var(--saffron); }
.card-body { padding: 20px; }

/* Stat Cards */
.stat-card {
    border-left: 4px solid var(--saffron);
    border-radius: 10px;
    background: #fff;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: all 0.25s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-card.red    { border-left-color: var(--deep-red); }
.stat-card.gold   { border-left-color: var(--gold); }
.stat-card.green  { border-left-color: #27ae60; }
.stat-icon {
    width: 50px; height: 50px;
    border-radius: 10px;
    background: var(--saffron-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: var(--saffron);
    flex-shrink: 0;
}
.stat-card.red  .stat-icon { background: rgba(139,26,26,0.08);  color: var(--deep-red); }
.stat-card.gold .stat-icon { background: rgba(212,175,55,0.12); color: var(--gold); }
.stat-card.green .stat-icon { background: rgba(39,174,96,0.1);  color: #27ae60; }
.stat-val { font-size: 26px; font-weight: 700; color: var(--text-dark); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-medium); margin-top: 3px; }

/* ---- BUTTONS ---- */
.btn-srs {
    background: linear-gradient(135deg, var(--saffron), var(--deep-red));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    transition: all 0.25s;
    cursor: pointer;
}
.btn-srs:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; box-shadow: 0 4px 14px rgba(139,26,26,0.3); }
.btn-srs-outline {
    background: transparent;
    border: 2px solid var(--saffron);
    color: var(--saffron);
    font-weight: 600;
    border-radius: 8px;
    padding: 7px 17px;
    font-size: 13px;
    transition: all 0.25s;
    cursor: pointer;
}
.btn-srs-outline:hover { background: var(--saffron); color: #fff; }
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--saffron-light));
    border: none; color: var(--dark);
    font-weight: 600; border-radius: 8px;
    padding: 8px 18px; font-size: 13px;
    transition: all 0.25s; cursor: pointer;
}
.btn-gold:hover { opacity: 0.9; transform: translateY(-1px); }

/* ---- TABLES ---- */
.table { font-size: 13px; }
.table thead th {
    background: var(--cream);
    color: var(--text-medium);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--card-border);
    padding: 10px 14px;
}
.table tbody td { padding: 10px 14px; vertical-align: middle; border-color: rgba(212,175,55,0.1); }
.table tbody tr:hover { background: var(--saffron-pale); }

/* Status badges */
.badge-active   { background: rgba(39,174,96,0.12);  color: #1a7a41; border: 1px solid rgba(39,174,96,0.25);  font-size: 11px; padding: 3px 10px; border-radius: 50px; font-weight: 600; }
.badge-pending  { background: rgba(255,107,0,0.10);  color: #b34700; border: 1px solid rgba(255,107,0,0.25);  font-size: 11px; padding: 3px 10px; border-radius: 50px; font-weight: 600; }
.badge-suspended{ background: rgba(139,26,26,0.10);  color: var(--deep-red); border: 1px solid rgba(139,26,26,0.25); font-size: 11px; padding: 3px 10px; border-radius: 50px; font-weight: 600; }
.badge-rejected { background: rgba(192,57,43,0.10);  color: var(--maroon); border: 1px solid rgba(192,57,43,0.25); font-size: 11px; padding: 3px 10px; border-radius: 50px; font-weight: 600; }

/* ---- FORM CONTROLS ---- */
.form-label { font-size: 12px; font-weight: 700; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 5px; }
.form-control, .form-select {
    border: 1.5px solid rgba(139,26,26,0.12);
    border-radius: 8px;
    font-size: 13px;
    padding: 9px 13px;
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(255,107,0,0.10);
    outline: none;
}
.form-control::placeholder { color: rgba(44,24,16,0.35); }
.form-text { font-size: 11px; color: var(--text-medium); }

/* ---- AVATAR ---- */
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--saffron), var(--deep-red));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 13px;
    overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }

/* ---- ALERTS ---- */
.alert-srs {
    border-radius: 10px;
    border: none;
    font-size: 13px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-srs-success { background: rgba(39,174,96,0.1);  color: #1a7a41; }
.alert-srs-error   { background: rgba(139,26,26,0.08); color: var(--deep-red); }
.alert-srs-info    { background: rgba(255,107,0,0.08); color: #b34700; }

/* ---- ACTIVITY FEED ---- */
.activity-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(212,175,55,0.1);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--saffron-pale);
    display: flex; align-items: center; justify-content: center;
    color: var(--saffron); font-size: 12px;
    flex-shrink: 0; margin-top: 2px;
}
.activity-text { font-size: 13px; color: var(--text-dark); line-height: 1.4; }
.activity-time { font-size: 11px; color: var(--text-medium); margin-top: 2px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    #sidebar { transform: translateX(-100%); }
    #sidebar.show { transform: translateX(0); }
    #main-content { margin-left: 0; }
    #topbar { left: 0; }
    #sidebarToggle { display: block; }
    .sidebar-overlay { display: block; }
}
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* ---- DataTables overrides ---- */
.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid rgba(139,26,26,0.12);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
}
.dataTables_wrapper .dataTables_length select {
    border: 1.5px solid rgba(139,26,26,0.12);
    border-radius: 8px;
    padding: 4px 8px;
}
.paginate_button.current { background: var(--saffron) !important; color: #fff !important; border-color: var(--saffron) !important; border-radius: 6px !important; }
.paginate_button:hover { background: var(--saffron-pale) !important; color: var(--saffron) !important; border-radius: 6px !important; }

/* ---- Login Page ---- */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, #3d0a00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.login-logo {
    text-align: center;
    margin-bottom: 6px;
}
.login-logo img { width: 56px; height: 56px; object-fit: contain; }
.login-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--deep-red);
    margin: 8px 0 4px;
}
.login-subtitle { text-align: center; font-size: 12px; color: var(--text-medium); margin-bottom: 28px; }
.login-divider {
    border: none;
    border-top: 1px solid rgba(212,175,55,0.2);
    margin: 20px 0;
}
.om-text {
    text-align: center;
    font-size: 26px;
    color: var(--saffron);
    margin-bottom: 4px;
    line-height: 1;
}

/* ---- Utilities ---- */
.text-saffron { color: var(--saffron) !important; }
.text-deep-red { color: var(--deep-red) !important; }
.text-gold { color: var(--gold) !important; }
.bg-saffron-pale { background: var(--saffron-pale) !important; }
.border-srs { border-color: var(--card-border) !important; }
.rounded-srs { border-radius: 10px !important; }
.fw-600 { font-weight: 600; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
