/* ============================================================
   ROTARACT CLUB OF TIRUPUR REDEEMERS - ADMIN PANEL STYLES
   admin.css - Complete Admin UI Stylesheet
   ============================================================ */

/* ============================================================
   ADMIN CUSTOM PROPERTIES
   ============================================================ */
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --topbar-height: 64px;
    --admin-bg: #f0f2f5;
    --admin-card: #ffffff;
    --admin-border: #e8eaf0;
    --admin-text: #1a1a2e;
    --admin-text-secondary: #6b7280;
    --admin-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --admin-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --admin-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --sidebar-bg: #1a0a14;
    --sidebar-hover: rgba(212,19,103,0.12);
    --sidebar-active: rgba(212,19,103,0.18);
    --sidebar-text: rgba(255,255,255,0.75);
    --sidebar-text-active: #ffffff;
    --sidebar-border: rgba(255,255,255,0.06);
    --stat-members: linear-gradient(135deg,#d41367,#a50e52);
    --stat-projects: linear-gradient(135deg,#3b82f6,#1d4ed8);
    --stat-pending: linear-gradient(135deg,#f59e0b,#d97706);
    --stat-meetings: linear-gradient(135deg,#8b5cf6,#6d28d9);
    --stat-treasury: linear-gradient(135deg,#10b981,#059669);
    --stat-applications: linear-gradient(135deg,#ec4899,#be185d);
}

[data-theme="dark"] {
    --admin-bg: #0a0a15;
    --admin-card: #141428;
    --admin-border: #1e1e35;
    --admin-text: #e8e8ff;
    --admin-text-secondary: #8a8aaa;
    --admin-shadow: 0 2px 8px rgba(0,0,0,0.25);
    --admin-shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --admin-shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --sidebar-bg: #080810;
    --sidebar-border: rgba(255,255,255,0.04);
}

/* ============================================================
   ADMIN BODY & LAYOUT
   ============================================================ */
.admin-body {
    background: var(--admin-bg);
    color: var(--admin-text);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   LOGIN OVERLAY
   ============================================================ */
.login-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg,#1a0a14 0%,#2d0a1f 50%,#0f0f1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.login-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(212,19,103,0.1) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(165,14,82,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
    animation: loginFadeIn 0.5s ease;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 20px;
    filter: drop-shadow(0 4px 20px rgba(212,19,103,0.4));
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-field label i {
    color: var(--primary);
    font-size: 15px;
}

.login-field input {
    padding: 13px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.login-field input::placeholder { color: rgba(255,255,255,0.3); }

.login-field input:focus {
    border-color: var(--primary);
    background: rgba(212,19,103,0.08);
    box-shadow: 0 0 0 3px rgba(212,19,103,0.15);
    outline: none;
}

.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 18px;
    transition: color 0.2s;
    padding: 4px;
}

.toggle-password:hover { color: rgba(255,255,255,0.8); }

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(220,38,38,0.12);
    border: 1px solid rgba(220,38,38,0.25);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 13px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.login-btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    padding: 14px;
    font-size: 15px;
    border-radius: 12px;
    position: relative;
    gap: 10px;
}

.login-footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.login-footer p {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-to-site {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.back-to-site:hover { color: var(--primary-lighter); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.admin-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 900;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), width 0.3s ease;
    overflow: hidden;
    border-right: 1px solid var(--sidebar-border);
}

.admin-sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.admin-sidebar.mobile-hidden {
    transform: translateX(-100%);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid var(--sidebar-border);
    min-height: 72px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    overflow: hidden;
    flex: 1;
}

.sidebar-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(212,19,103,0.3));
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.2s, width 0.3s;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-subtitle {
    font-size: 11px;
    color: var(--primary-lighter);
    font-weight: 500;
    white-space: nowrap;
}

.sidebar-close {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

/* Sidebar User */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--sidebar-border);
    overflow: hidden;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--primary-glow);
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--primary-lighter);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.nav-section {
    margin-bottom: 4px;
    padding: 0 8px;
}

.nav-section-title {
    display: block;
    padding: 8px 8px 4px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    transition: height 0.2s ease;
}

.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #ffffff;
}

.sidebar-link:hover::before { height: 60%; }

.sidebar-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
    font-weight: 600;
}

.sidebar-link.active::before { height: 70%; }

.sidebar-link i {
    font-size: 18px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-link span:not(.sidebar-badge) {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 12px 8px;
    border-top: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-footer-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sidebar-text);
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    text-align: left;
}

.sidebar-footer-btn i {
    font-size: 18px;
    min-width: 20px;
}

.sidebar-footer-btn:hover {
    background: var(--sidebar-hover);
    color: #ffffff;
}

.logout-btn:hover {
    background: rgba(220,38,38,0.15) !important;
    color: #fca5a5 !important;
}

.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }
[data-theme="dark"] .theme-icon-dark { display: block; }
[data-theme="dark"] .theme-icon-light { display: none; }

/* Collapsed Sidebar */
.admin-sidebar.collapsed .sidebar-logo-text,
.admin-sidebar.collapsed .sidebar-user-info,
.admin-sidebar.collapsed .nav-section-title,
.admin-sidebar.collapsed .sidebar-link span,
.admin-sidebar.collapsed .sidebar-badge,
.admin-sidebar.collapsed .sidebar-footer-btn span {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.admin-sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 12px;
}

.admin-sidebar.collapsed .sidebar-footer-btn {
    justify-content: center;
    padding: 12px;
}

.admin-sidebar.collapsed .sidebar-user {
    justify-content: center;
}

.admin-sidebar.collapsed .sidebar-close { display: none; }

/* ============================================================
   ADMIN MAIN
   ============================================================ */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    min-width: 0;
}

.admin-sidebar.collapsed ~ .admin-main {
    margin-left: var(--sidebar-collapsed);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.admin-topbar {
    height: var(--topbar-height);
    background: var(--admin-card);
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--admin-shadow);
    gap: 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--admin-text-secondary);
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: var(--admin-bg);
    color: var(--primary);
}

.breadcrumb-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--admin-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    transition: all 0.2s;
}

.topbar-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,19,103,0.1);
}

.topbar-search i {
    color: var(--admin-text-secondary);
    font-size: 16px;
    flex-shrink: 0;
}

.topbar-search input {
    border: none;
    background: none;
    color: var(--admin-text);
    font-size: 13px;
    width: 180px;
    font-family: var(--font-family);
}

.topbar-search input::placeholder { color: var(--admin-text-secondary); }

.topbar-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--admin-text-secondary);
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

.topbar-action-btn:hover {
    background: var(--primary-lightest);
    color: var(--primary);
    border-color: var(--primary-lighter);
}

[data-theme="dark"] .topbar-action-btn:hover {
    background: rgba(212,19,103,0.1);
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--admin-card);
}

/* Topbar User */
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 20px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

.topbar-user:hover {
    border-color: var(--primary-lighter);
}

.topbar-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.topbar-user-info {
    display: flex;
    flex-direction: column;
}

.topbar-user-info span:first-child {
    font-size: 12px;
    font-weight: 700;
    color: var(--admin-text);
    white-space: nowrap;
}

.topbar-user-info span:last-child {
    font-size: 10px;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
}

/* Topbar Dropdown */
.topbar-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: var(--admin-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 200;
}

.topbar-user:hover .topbar-user-dropdown,
.topbar-user.active .topbar-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--admin-text);
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--primary-lightest);
    color: var(--primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(212,19,103,0.1);
}

.dropdown-item i { font-size: 16px; color: var(--primary); }
.dropdown-item hr { border: none; border-top: 1px solid var(--admin-border); margin: 4px 0; }

.logout-item:hover {
    background: rgba(220,38,38,0.1) !important;
    color: #dc2626 !important;
}

.logout-item:hover i { color: #dc2626 !important; }

.topbar-user-dropdown hr {
    border: none;
    border-top: 1px solid var(--admin-border);
    margin: 4px 0;
}

/* Notification Panel */
.notification-panel {
    position: absolute;
    top: calc(var(--topbar-height) + 8px);
    right: 24px;
    width: 340px;
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    box-shadow: var(--admin-shadow-lg);
    z-index: 150;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
}

.notification-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--admin-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-header h4 i { color: var(--primary); }

.notification-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.2s;
    cursor: pointer;
}

.notification-item:hover { background: var(--admin-bg); }

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-lightest);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

[data-theme="dark"] .notification-icon { background: rgba(212,19,103,0.1); }

.notification-info h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 2px;
}

.notification-info p {
    font-size: 11px;
    color: var(--admin-text-secondary);
}

.notification-empty {
    text-align: center;
    padding: 32px 20px;
    color: var(--admin-text-secondary);
}

.notification-empty i { font-size: 32px; margin-bottom: 8px; display: block; }
.notification-empty p { font-size: 13px; }

/* ============================================================
   ADMIN CONTENT
   ============================================================ */
.admin-content {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
    min-height: calc(100vh - var(--topbar-height));
}

.admin-page {
    animation: pageFadeIn 0.3s ease;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page Header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--admin-text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.page-header h2 i { color: var(--primary); }

.page-header p {
    font-size: 13px;
    color: var(--admin-text-secondary);
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Page Filters */
.page-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    transition: all 0.2s;
    min-width: 220px;
}

.filter-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,19,103,0.08);
}

.filter-search i { color: var(--admin-text-secondary); font-size: 16px; }

.admin-search-input {
    border: none;
    background: none;
    color: var(--admin-text);
    font-size: 13px;
    font-family: var(--font-family);
    flex: 1;
    min-width: 0;
}

.admin-search-input::placeholder { color: var(--admin-text-secondary); }

/* Admin Select */
.admin-select {
    padding: 9px 14px;
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    color: var(--admin-text);
    font-size: 13px;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s;
    appearance: auto;
}

.admin-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,19,103,0.08);
    outline: none;
}

/* ============================================================
   DASHBOARD STATS
   ============================================================ */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-stat-card {
    background: var(--admin-card);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dash-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}

.stat-members::after { background: var(--stat-members); }
.stat-projects::after { background: var(--stat-projects); }
.stat-pending::after { background: var(--stat-pending); }
.stat-meetings::after { background: var(--stat-meetings); }
.stat-treasury::after { background: var(--stat-treasury); }
.stat-applications::after { background: var(--stat-applications); }

.dash-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--admin-shadow-md);
}

.dash-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-members .dash-stat-icon { background: rgba(212,19,103,0.1); color: #d41367; }
.stat-projects .dash-stat-icon { background: rgba(59,130,246,0.1); color: #3b82f6; }
.stat-pending .dash-stat-icon { background: rgba(245,158,11,0.1); color: #f59e0b; }
.stat-meetings .dash-stat-icon { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.stat-treasury .dash-stat-icon { background: rgba(16,185,129,0.1); color: #10b981; }
.stat-applications .dash-stat-icon { background: rgba(236,72,153,0.1); color: #ec4899; }

.dash-stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--admin-text);
    display: block;
    line-height: 1;
}

.dash-stat-label {
    font-size: 11px;
    color: var(--admin-text-secondary);
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dashboard-widget {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--admin-shadow);
}

.widget-wide {
    grid-column: 1 / -1;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
}

.widget-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--admin-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-header h3 i { color: var(--primary); }

.widget-link {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.2s;
}

.widget-link:hover { color: var(--primary-dark); }

.widget-body {
    padding: 16px 20px;
    max-height: 320px;
    overflow-y: auto;
}

.widget-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Widget Items */
.widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--admin-border);
    transition: all 0.2s;
}

.widget-item:last-child { border-bottom: none; }

.widget-item:hover { padding-left: 4px; }

.widget-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-lightest);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

[data-theme="dark"] .widget-item-icon { background: rgba(212,19,103,0.1); }

.widget-item-info {
    flex: 1;
    min-width: 0;
}

.widget-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-item-sub {
    font-size: 11px;
    color: var(--admin-text-secondary);
    margin-top: 2px;
}

.widget-item-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.badge-pending { background: rgba(245,158,11,0.1); color: #f59e0b; }
.badge-approved { background: rgba(16,185,129,0.1); color: #10b981; }
.badge-rejected { background: rgba(220,38,38,0.1); color: #dc2626; }
.badge-upcoming { background: rgba(59,130,246,0.1); color: #3b82f6; }
.badge-completed { background: rgba(107,114,128,0.1); color: #6b7280; }
.badge-ongoing { background: rgba(16,185,129,0.1); color: #10b981; }

/* Avenue Stats */
.avenue-stats-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 12px;
}

.avenue-stat-item {
    text-align: center;
    padding: 16px;
    background: var(--admin-bg);
    border-radius: 12px;
    transition: all 0.2s;
}

.avenue-stat-item:hover { transform: translateY(-3px); }

.avenue-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary-lightest);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 10px;
}

[data-theme="dark"] .avenue-stat-icon { background: rgba(212,19,103,0.1); }

.avenue-stat-count {
    font-size: 24px;
    font-weight: 800;
    color: var(--admin-text);
    display: block;
}

.avenue-stat-label {
    font-size: 11px;
    color: var(--admin-text-secondary);
    display: block;
    margin-top: 4px;
}

/* Treasury Summary Widget */
.treasury-widget-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}

.treasury-widget-item {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.treasury-widget-item.income { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.15); }
.treasury-widget-item.expense { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.15); }
.treasury-widget-item.balance { background: rgba(212,19,103,0.08); border: 1px solid rgba(212,19,103,0.15); }

.treasury-widget-label { font-size: 11px; color: var(--admin-text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.treasury-widget-amount { font-size: 18px; font-weight: 800; display: block; margin-top: 4px; }
.treasury-widget-item.income .treasury-widget-amount { color: #10b981; }
.treasury-widget-item.expense .treasury-widget-amount { color: #dc2626; }
.treasury-widget-item.balance .treasury-widget-amount { color: var(--primary); }

/* ============================================================
   ADMIN TABLES
   ============================================================ */
.admin-table-container {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--admin-shadow);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table thead {
    background: var(--admin-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-table th {
    padding: 13px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--admin-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
    padding: 13px 16px;
    color: var(--admin-text);
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tbody tr {
    transition: background 0.15s ease;
}

.admin-table tbody tr:hover { background: var(--admin-bg); }

.admin-table tfoot {
    background: var(--admin-bg);
    border-top: 2px solid var(--admin-border);
}

.admin-table tfoot td {
    padding: 13px 16px;
    font-weight: 600;
    border-bottom: none;
}

.table-loading {
    text-align: center;
    padding: 48px;
}

.table-loading .loading-spinner {
    margin: 0 auto;
}

/* Table Elements */
.table-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--admin-border);
}

.table-photo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-lightest);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid var(--admin-border);
}

[data-theme="dark"] .table-photo-placeholder { background: rgba(212,19,103,0.1); }

.table-title {
    font-weight: 600;
    color: var(--admin-text);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-sub {
    font-size: 11px;
    color: var(--admin-text-secondary);
    margin-top: 2px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-pending { background: rgba(245,158,11,0.1); color: #d97706; }
.status-approved { background: rgba(16,185,129,0.1); color: #059669; }
.status-rejected { background: rgba(220,38,38,0.1); color: #dc2626; }
.status-upcoming { background: rgba(59,130,246,0.1); color: #2563eb; }
.status-completed { background: rgba(107,114,128,0.1); color: #4b5563; }
.status-ongoing { background: rgba(16,185,129,0.1); color: #059669; }
.status-cancelled { background: rgba(220,38,38,0.1); color: #dc2626; }
.status-draft { background: rgba(107,114,128,0.1); color: #4b5563; }
.status-submitted { background: rgba(59,130,246,0.1); color: #2563eb; }
.status-scheduled { background: rgba(139,92,246,0.1); color: #7c3aed; }
.status-sent { background: rgba(16,185,129,0.1); color: #059669; }
.status-failed { background: rgba(220,38,38,0.1); color: #dc2626; }
.status-under_review { background: rgba(245,158,11,0.1); color: #d97706; }

/* Action Buttons */
.action-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.action-btn-edit {
    background: rgba(59,130,246,0.08);
    color: #3b82f6;
}
.action-btn-edit:hover { background: rgba(59,130,246,0.18); transform: scale(1.1); }

.action-btn-delete {
    background: rgba(220,38,38,0.08);
    color: #dc2626;
}
.action-btn-delete:hover { background: rgba(220,38,38,0.18); transform: scale(1.1); }

.action-btn-approve {
    background: rgba(16,185,129,0.08);
    color: #10b981;
}
.action-btn-approve:hover { background: rgba(16,185,129,0.18); transform: scale(1.1); }

.action-btn-reject {
    background: rgba(245,158,11,0.08);
    color: #f59e0b;
}
.action-btn-reject:hover { background: rgba(245,158,11,0.18); transform: scale(1.1); }

.action-btn-view {
    background: rgba(139,92,246,0.08);
    color: #8b5cf6;
}
.action-btn-view:hover { background: rgba(139,92,246,0.18); transform: scale(1.1); }

.action-btn-download {
    background: rgba(16,185,129,0.08);
    color: #10b981;
}
.action-btn-download:hover { background: rgba(16,185,129,0.18); transform: scale(1.1); }

.action-btn-mail {
    background: rgba(212,19,103,0.08);
    color: var(--primary);
}
.action-btn-mail:hover { background: rgba(212,19,103,0.18); transform: scale(1.1); }

.action-btn-report {
    background: rgba(245,158,11,0.08);
    color: #f59e0b;
}
.action-btn-report:hover { background: rgba(245,158,11,0.18); transform: scale(1.1); }

/* Table Pagination */
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-top: none;
    border-radius: 0 0 16px 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 12px;
    color: var(--admin-text-secondary);
}

.pagination-btns {
    display: flex;
    gap: 4px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-text-secondary);
    border: 1px solid var(--admin-border);
    background: var(--admin-card);
    transition: all 0.2s;
    cursor: pointer;
}

.page-btn:hover, .page-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ============================================================
   TREASURY
   ============================================================ */
.treasury-summary {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.treasury-card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--admin-shadow);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.treasury-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.income-card::before { background: linear-gradient(90deg,#10b981,#059669); }
.expense-card::before { background: linear-gradient(90deg,#ef4444,#dc2626); }
.balance-card::before { background: var(--primary-gradient); }
.entries-card::before { background: linear-gradient(90deg,#8b5cf6,#6d28d9); }

.treasury-card:hover { transform: translateY(-3px); box-shadow: var(--admin-shadow-md); }

.treasury-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.income-card .treasury-card-icon { background: rgba(16,185,129,0.1); color: #10b981; }
.expense-card .treasury-card-icon { background: rgba(220,38,38,0.1); color: #dc2626; }
.balance-card .treasury-card-icon { background: rgba(212,19,103,0.1); color: var(--primary); }
.entries-card .treasury-card-icon { background: rgba(139,92,246,0.1); color: #8b5cf6; }

.treasury-card-info { display: flex; flex-direction: column; }
.treasury-card-label { font-size: 12px; color: var(--admin-text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.treasury-card-amount { font-size: 22px; font-weight: 800; color: var(--admin-text); margin-top: 4px; }

/* Treasury Table Colors */
.income-row td:nth-child(5) { color: #10b981; font-weight: 700; }
.expense-row td:nth-child(6) { color: #dc2626; font-weight: 700; }

/* ============================================================
   ADMIN MODAL FORMS
   ============================================================ */
.admin-modal-container {
    max-width: 680px;
}

.admin-modal-body {
    padding: 24px 28px;
    max-height: 65vh;
    overflow-y: auto;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.admin-form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--admin-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-form-group label i { color: var(--primary); }
.admin-form-group label .req { color: var(--primary); }

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    padding: 11px 14px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    color: var(--admin-text);
    font-size: 13px;
    font-family: var(--font-family);
    transition: all 0.2s;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,19,103,0.1);
    background: var(--admin-card);
    outline: none;
}

.admin-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.admin-form-group input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-form-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--admin-border);
}

.admin-form-section:last-child { border-bottom: none; }

.admin-form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--admin-border);
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-input { display: none; }

.toggle-track {
    width: 44px;
    height: 24px;
    background: var(--admin-border);
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.toggle-input:checked + .toggle-track { background: var(--primary); }
.toggle-input:checked + .toggle-track::after { transform: translateX(20px); }

.toggle-label { font-size: 13px; color: var(--admin-text); font-weight: 500; }

/* Photo upload in admin forms */
.admin-photo-upload {
    border: 2px dashed var(--admin-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.admin-photo-upload:hover, .admin-photo-upload.dragover {
    border-color: var(--primary);
    background: rgba(212,19,103,0.04);
}

.admin-photo-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    padding: 0;
}

.admin-photo-upload i { font-size: 32px; color: var(--primary); margin-bottom: 8px; display: block; }
.admin-photo-upload p { font-size: 13px; color: var(--admin-text-secondary); }
.admin-photo-upload span { font-size: 11px; color: var(--admin-text-secondary); opacity: 0.7; }

.admin-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.admin-photo-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--admin-border);
}

.admin-photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-photo-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(220,38,38,0.9);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-photo-preview-remove:hover { background: #dc2626; transform: scale(1.1); }

/* ============================================================
   SITE SETTINGS
   ============================================================ */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-group {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--admin-shadow);
}

.settings-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--admin-border);
    background: var(--admin-bg);
    cursor: pointer;
    transition: background 0.2s;
}

.settings-group-header:hover { background: var(--admin-bg); }

.settings-group-header i { color: var(--primary); font-size: 18px; }

.settings-group-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--admin-text);
    flex: 1;
}

.settings-group-header .toggle-icon {
    font-size: 18px;
    color: var(--admin-text-secondary);
    transition: transform 0.2s;
}

.settings-group-header.collapsed .toggle-icon { transform: rotate(-90deg); }

.settings-group-body {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
}

.settings-group-body.single-col { grid-template-columns: 1fr; }

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.setting-item label {
    font-size: 12px;
    font-weight: 700;
    color: var(--admin-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-item input,
.setting-item select,
.setting-item textarea {
    padding: 10px 14px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    color: var(--admin-text);
    font-size: 13px;
    font-family: var(--font-family);
    transition: all 0.2s;
}

.setting-item input:focus,
.setting-item select:focus,
.setting-item textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,19,103,0.08);
    outline: none;
}

.setting-item textarea { resize: vertical; min-height: 80px; }

/* Role Permissions */
.role-permissions-info {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--admin-shadow);
}

.role-permissions-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--admin-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-permissions-info h4 i { color: var(--primary); }

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}

.permission-card {
    padding: 14px;
    background: var(--admin-bg);
    border-radius: 10px;
    border: 1px solid var(--admin-border);
}

.permission-card h5 {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.permission-card p {
    font-size: 11px;
    color: var(--admin-text-secondary);
    line-height: 1.5;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-container {
    max-width: 600px;
}

.profile-card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--admin-shadow);
}

.profile-header {
    padding: 32px;
    background: linear-gradient(135deg,#1a0a14,#2d0a1f);
    text-align: center;
    position: relative;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: var(--primary-glow);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.profile-role {
    font-size: 13px;
    color: var(--primary-lighter);
    font-weight: 500;
}

.profile-body {
    padding: 24px;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--admin-border);
}

.profile-info-item:last-child { border-bottom: none; }

.profile-info-item i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-lightest);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

[data-theme="dark"] .profile-info-item i { background: rgba(212,19,103,0.1); }

.profile-info-label { font-size: 11px; color: var(--admin-text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.profile-info-value { font-size: 14px; color: var(--admin-text); font-weight: 500; margin-top: 2px; }

/* ============================================================
   REPORT VIEWER
   ============================================================ */
.report-detail-panel {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 16px;
    box-shadow: var(--admin-shadow);
}

.report-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
    gap: 10px;
    margin-top: 16px;
}

.report-photo-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--admin-border);
    transition: all 0.2s;
}

.report-photo-item:hover { transform: scale(1.04); }

.report-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   MEETING ATTENDANCE SHEET
   ============================================================ */
.attendance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 12px;
}

.attendance-table th {
    padding: 10px 14px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    font-size: 11px;
    font-weight: 700;
    color: var(--admin-text-secondary);
    text-transform: uppercase;
}

.attendance-table td {
    padding: 10px 14px;
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
}

.attendance-sign {
    width: 60px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

/* ============================================================
   RESPONSIVE ADMIN
   ============================================================ */
@media (max-width: 1400px) {
    .dashboard-stats { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 1200px) {
    :root { --sidebar-width: 220px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .avenue-stats-grid { grid-template-columns: repeat(3,1fr); }
    .treasury-summary { grid-template-columns: repeat(2,1fr); }
    .settings-group-body { grid-template-columns: 1fr; }
    .permissions-grid { grid-template-columns: repeat(2,1fr); }
    .topbar-search input { width: 140px; }
}

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
        z-index: 950;
        box-shadow: var(--admin-shadow-lg);
    }
    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }
    .admin-main { margin-left: 0 !important; }
    .sidebar-close { display: flex !important; }
    .dashboard-stats { grid-template-columns: repeat(2,1fr); }
    .admin-form-row { grid-template-columns: 1fr; }
    .admin-content { padding: 20px; }
}

@media (max-width: 768px) {
    :root { --topbar-height: 56px; }
    .topbar-search { display: none; }
    .admin-content { padding: 16px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-header-actions { width: 100%; }
    .page-filters { flex-direction: column; align-items: stretch; }
    .filter-group { flex-wrap: wrap; }
    .admin-select { width: 100%; }
    .filter-search { min-width: 0; }
    .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .treasury-summary { grid-template-columns: 1fr 1fr; }
    .permissions-grid { grid-template-columns: 1fr; }
    .avenue-stats-grid { grid-template-columns: repeat(2,1fr); }
    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4),
    .admin-table th:nth-child(5),
    .admin-table td:nth-child(5) { display: none; }
}

@media (max-width: 480px) {
    .dashboard-stats { grid-template-columns: 1fr; }
    .treasury-summary { grid-template-columns: 1fr; }
    .page-header-actions { flex-direction: column; }
    .page-header-actions .btn { width: 100%; justify-content: center; }
    .admin-content { padding: 12px; }
    .login-card { padding: 28px 20px; }
    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3) { display: none; }
}

/* ============================================================
   SIDEBAR OVERLAY (Mobile)
   ============================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 940;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active { display: block; }

/* ============================================================
   MISC ADMIN UTILITIES
   ============================================================ */
.text-income { color: #10b981; font-weight: 700; }
.text-expense { color: #dc2626; font-weight: 700; }
.text-balance { color: var(--primary); font-weight: 700; }
.text-warning { color: #f59e0b; }
.text-info { color: #3b82f6; }
.text-success { color: #10b981; }
.text-danger { color: #dc2626; }
.text-muted-admin { color: var(--admin-text-secondary); font-size: 12px; }

.admin-divider {
    border: none;
    border-top: 1px solid var(--admin-border);
    margin: 16px 0;
}

.admin-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--admin-text-secondary);
}

.admin-empty-state i { font-size: 48px; margin-bottom: 12px; display: block; color: var(--admin-text-secondary); }
.admin-empty-state h4 { font-size: 15px; font-weight: 600; color: var(--admin-text); margin-bottom: 6px; }
.admin-empty-state p { font-size: 13px; }

.info-box {
    padding: 14px 16px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

.info-box i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.info-box-info { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15); color: #3b82f6; }
.info-box-warning { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.15); color: #d97706; }
.info-box-success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.15); color: #059669; }
.info-box-danger { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.15); color: #dc2626; }

/* Scrollbar in admin */
.admin-content::-webkit-scrollbar,
.admin-modal-body::-webkit-scrollbar,
.widget-body::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar { width: 5px; }

.admin-content::-webkit-scrollbar-track,
.admin-modal-body::-webkit-scrollbar-track,
.widget-body::-webkit-scrollbar-track { background: transparent; }

.admin-content::-webkit-scrollbar-thumb,
.admin-modal-body::-webkit-scrollbar-thumb,
.widget-body::-webkit-scrollbar-thumb {
    background: var(--admin-border);
    border-radius: 4px;
}

.admin-content::-webkit-scrollbar-thumb:hover,
.admin-modal-body::-webkit-scrollbar-thumb:hover { background: var(--primary-lighter); }

/* Print for admin reports */
@media print {
    .admin-sidebar,
    .admin-topbar,
    .page-header-actions,
    .page-filters,
    .action-btns { display: none !important; }
    .admin-main { margin-left: 0 !important; }
    .admin-content { padding: 0; }
}