/* Admin Dashboard Common Styles */
:root {
    --card-shadow: 0 4px 20px rgba(0,0,0,0.03);
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    --transition: none;
    --radius-lg: 20px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: none !important;
    animation: none !important;
}

body {
    background-color: var(--admin-bg);
    color: var(--admin-text);
    display: flex;
    min-height: 100vh;
    font-size: 0.95rem;
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 260px;
    background-color: var(--admin-sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    z-index: 1000;
}

.sidebar.collapsed { width: 70px; }
.sidebar.collapsed .sidebar-header h2 { display: none; }
.sidebar.collapsed .sidebar-header::after { content: 'MH'; font-size: 1.5rem; font-weight: 800; }
.sidebar.collapsed a span { display: none; }
.sidebar.collapsed a { justify-content: center; padding: 15px 0; }
.sidebar.collapsed a i { margin-right: 0 !important; font-size: 1.3rem; }

.sidebar-header { 
    padding: 30px 20px; 
    text-align: left; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}
.sidebar-header h2 { 
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem; 
    font-weight: 800; 
    letter-spacing: -0.5px;
}

.mobile-close-btn {
    display: none;
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-close-btn:hover { background: rgba(255,255,255,0.2); }

.sidebar-menu { flex: 1; overflow-y: auto; padding: 20px 0; }
.sidebar a {
    padding: 12px 24px;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.sidebar a i { font-size: 1.1rem; opacity: 0.8; }
.sidebar a:hover, .sidebar a.active {
    background-color: var(--admin-hover);
    color: white;
}
.sidebar a.active {
    background-color: rgba(255,255,255,0.1);
    border-right: 4px solid var(--admin-highlight);
}

.sidebar-bottom { background-color: rgba(0,0,0,0.1); border-top: 1px solid rgba(255,255,255,0.05); }
.sidebar-bottom a { padding: 15px 25px; }
.visit-link { border-left-color: #4dd0e1 !important; color: #4dd0e1 !important; }
.logout { background-color: #ef4444; color: white !important; }
.logout:hover { background-color: #dc2626; }

/* Submenu */
.submenu { background: rgba(0,0,0,0.2); display: none; overflow: hidden; }
.has-submenu.active .submenu { display: block; }
.has-submenu .fa-chevron-down { margin-left: auto; font-size: 0.7rem; transition: var(--transition); }
.has-submenu.active .fa-chevron-down { transform: rotate(180deg); }
.submenu a { padding: 10px 25px 10px 50px; font-size: 0.85rem; border-left: none; }

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 900;
    backdrop-filter: blur(4px);
}
.sidebar-overlay.active {
    display: block;
}

/* Main Content Wrapper */
.main-content {
    flex: 1;
    padding: 30px;
    background-color: var(--admin-bg);
    color: var(--admin-text);
    overflow-y: auto;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--admin-card);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--header-shadow);
    gap: 15px;
}

.header-left { display: flex; align-items: center; gap: 15px; }
.header h1 { 
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem; 
    font-weight: 700; 
    color: var(--admin-primary); 
}
.menu-toggle {
    background: var(--admin-sidebar);
    color: white; border: none; padding: 10px; border-radius: 8px;
    cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}

.welcome-text {
    font-weight: 600;
    color: var(--admin-text);
    background: var(--admin-bg);
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Card Component */
.card {
    background: var(--admin-card);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.card h3 { 
    font-family: 'Outfit', sans-serif;
    color: var(--admin-primary); 
    font-size: 1rem;
    margin-bottom: 12px; 
    font-weight: 700; 
}

/* Grid Layouts */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }

/* User Card Styles */
.user-card {
    background: var(--admin-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}
.user-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.user-img { width: 100%; height: 180px; object-fit: cover; }
.user-info { padding: 20px; }
.user-id { font-size: 0.75rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; margin-bottom: 8px; display: block; }
.user-info h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--admin-primary); }
.user-info p { font-size: 0.9rem; color: #64748b; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.user-info p i { width: 16px; color: var(--admin-sidebar); }

/* Buttons & Actions */
.btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}
.btn-primary { background: var(--admin-sidebar); color: white; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-approve { background: #10b981; color: white; }
.btn-reject { background: #ef4444; color: white; }
.btn-reset { background: #64748b; color: white; }
.user-card .btn-view { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.9); color: var(--admin-sidebar); padding: 8px; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 10; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.actions .btn { justify-content: center; }

/* Badges */
.status-pill, .status-badge, .role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}
.status-active { background: #f0fdf4; color: #166534; }
.status-pending { background: #fffbeb; color: #92400e; }
.status-rejected, .status-expired { background: #fee2e2; color: #991b1b; }
.role-superadmin { background: #e0f2fe; color: #0369a1; }
.role-badge { background: #f1f5f9; color: #475569; }

/* Table Styles */
.table-responsive { overflow-x: auto; border-radius: var(--radius-md); background: white; box-shadow: var(--card-shadow); }
table { width: 100%; border-collapse: collapse; }
th { background: #f8fafc; padding: 15px 20px; text-align: left; font-size: 0.8rem; color: #64748b; font-weight: 700; border-bottom: 1px solid #f1f5f9; }
td { padding: 15px 20px; font-size: 0.9rem; border-bottom: 1px solid #f1f5f9; }
tr:hover { background: #f8fafc; }

/* Info Rows & Rows */
.info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.03); }
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 700; color: #94a3b8; font-size: 0.85rem; }
.info-value { font-weight: 600; color: var(--admin-text); }

/* Technical Badge */
.tech-badge { background: #f8fafc; padding: 15px; border-radius: 15px; border: 1px solid #e2e8f0; margin-top: 15px; }
.tech-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.85rem; font-weight: 600; color: #475569; }
.tech-item i { width: 20px; color: var(--admin-sidebar); }

/* Floating Support Button */
.floating-support-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--admin-sidebar);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    z-index: 1000;
}
.floating-support-btn:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }

/* Toast Notifications */
.toast-container { position: fixed; top: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; pointer-events: none; }
.toast {
    padding: 15px 25px; border-radius: 12px; color: white; display: flex; align-items: center; gap: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); opacity: 0; transform: translateX(50px);
    transition: var(--transition); min-width: 300px; pointer-events: auto;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { background: #10b981; }
.toast.error { background: #ef4444; }
.toast-icon { font-size: 1.5rem; }
.toast-content { display: flex; flex-direction: column; }
.toast-title { font-weight: 800; font-size: 1rem; }
.toast-message { font-size: 0.85rem; opacity: 0.9; }

/* Form & Header Containers */
.form-container { background: var(--admin-card); padding: 30px; border-radius: 20px; box-shadow: var(--card-shadow); }
.actions-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; gap: 20px; flex-wrap: wrap; }
.month-selector select { padding: 10px 15px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.1); background: white; font-weight: 600; cursor: pointer; }

/* Prayer Row & Modal Form Grid */
.prayer-row { display: grid; grid-template-columns: 100px 1fr 1fr; gap: 15px; align-items: end; background: #f8fafc; padding: 15px; border-radius: 12px; margin-bottom: 12px; border: 1px solid rgba(0,0,0,0.03); }
.prayer-label { font-weight: 800; color: var(--admin-primary); margin-bottom: 10px; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 700; color: #94a3b8; margin-bottom: 5px; text-transform: uppercase; }
.form-group input, .form-group select { width: 100%; padding: 10px 15px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.1); background: white; transition: var(--transition); }
.form-group input:focus { border-color: var(--admin-sidebar); outline: none; box-shadow: 0 0 0 3px rgba(11, 59, 36, 0.1); }

/* Modal Styles */
.edit-modal-overlay, .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 2000; backdrop-filter: blur(5px); }
.edit-modal, .modal-content { background: white; width: 90%; max-width: 600px; max-height: 90vh; border-radius: 25px; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.edit-modal-header, .modal-header { padding: 20px 30px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: white; z-index: 10; }
.edit-modal-body { padding: 30px; }
.close-modal { font-size: 1.5rem; cursor: pointer; color: #94a3b8; }
.btn-save, .btn-add { background: var(--admin-sidebar); color: white; padding: 15px; border-radius: 12px; width: 100%; margin-top: 20px; font-weight: 700; border: none; cursor: pointer; }

/* Utility Grid */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Navigation Buttons */
.btn-nav { padding: 10px 20px; border-radius: 10px; background: #f1f5f9; color: #475569; text-decoration: none; font-weight: 700; transition: var(--transition); }
.btn-nav:hover { background: #e2e8f0; color: #1e293b; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar { position: fixed; left: -280px; height: 100vh; width: 280px; z-index: 1001; }
    .sidebar.active { left: 0; }
    .sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 25px 20px; }
    .mobile-close-btn { display: block !important; }
    .main-content { padding: 15px; margin-left: 0 !important; width: 100%; }
    .header { padding: 15px; flex-direction: column; align-items: flex-start; }
    .header-left { width: 100%; justify-content: space-between; }
    .welcome-text { display: none; }
    .user-grid { grid-template-columns: 1fr; }
    .prayer-row { grid-template-columns: 1fr; }
}
