/* /styles/admin.css - COMPLETE REPLACEMENT FILE with Enhanced Filter Styles */

/* Admin Layout */
.admin-panel { 
    width: 80vw; 
    height: 100vh;
    max-width: none;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
    gap: 1rem;
    border: 2px solid #0f172a;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.admin-header { 
    background: linear-gradient(145deg, #1e293b, #0f172a); 
    border: 2px solid #0f172a; 
    border-radius: 20px; 
    padding: 1rem; 
    margin-bottom: 1rem; 
    text-align: center; 
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.admin-title { 
    font-size: 2rem; 
    font-weight: 700; 
    color: #60a5fa; 
    margin-bottom: 0.5rem; 
}

.admin-subtitle { 
    color: #9ca3af; 
    font-size: 1.1rem; 
}

/* Close Button */
.admin-close-btn { 
    position: absolute; 
    top: 1rem; 
    right: 1rem; 
    background: linear-gradient(145deg, #dc2626, #991b1b); 
    border: none; 
    color: white; 
    width: 40px;
    height: 40px;
    border-radius: 50%; 
    cursor: pointer; 
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.2s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 1000;
}

.admin-close-btn:hover { 
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); 
}

/* Tabs */
.tabs { 
    display: flex; 
    gap: 1rem; 
    margin-bottom: 1rem; 
    background: linear-gradient(145deg, #1e293b, #0f172a); 
    padding: 1rem; 
    border-radius: 16px; 
    border: 2px solid #0f172a; 
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.tab { 
    background: linear-gradient(145deg, #334155, #1e293b); 
    border: 1px solid rgba(59, 130, 246, 0.2); 
    color: #9ca3af; 
    padding: 1rem 2rem; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: all 0.3s ease; 
    flex: 1; 
    text-align: center; 
    font-size: 1rem; 
}

.tab.active { 
    background: linear-gradient(145deg, #3b82f6, #1d4ed8); 
    color: white; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4); 
}

.tab:hover:not(.active) { 
    background: linear-gradient(145deg, #475569, #334155); 
    color: #60a5fa; 
}

/* Tab Content */
.tab-content { 
    background: linear-gradient(145deg, #1e293b, #0f172a); 
    border: 2px solid #0f172a; 
    border-radius: 20px; 
    padding: 1rem; 
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.4); 
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.tab-panel { 
    display: none; 
}

.tab-panel.active { 
    display: block; 
}

/* Tab Headers */
.tab-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 1rem; 
    padding-bottom: 1rem; 
    border-bottom: 1px solid rgba(59, 130, 246, 0.2); 
}

.tab-title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #60a5fa; 
}

.tab-actions { 
    display: flex; 
    gap: 1rem; 
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: linear-gradient(145deg, #6b7280, #4b5563);
}

.btn-danger {
    background: linear-gradient(145deg, #dc2626, #991b1b);
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Enhanced Search & Filter Section */
.search-filter { 
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem; 
    margin-bottom: 1rem; 
    align-items: end;
    background: linear-gradient(145deg, #334155, #1e293b);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Filter Group with Labels */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

/* Search Input (larger) */
.search-input { 
    background: linear-gradient(145deg, #0f172a, #1e293b); 
    border: 1px solid rgba(59, 130, 246, 0.3); 
    color: white; 
    padding: 0.75rem 1rem; 
    border-radius: 8px; 
    font-size: 1rem; 
    transition: all 0.2s ease;
}

.search-input:focus { 
    outline: none; 
    border-color: #60a5fa; 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); 
    transform: translateY(-1px);
}

/* Filter Dropdowns */
.filter-select { 
    background: linear-gradient(145deg, #0f172a, #1e293b); 
    border: 1px solid rgba(59, 130, 246, 0.3); 
    color: white; 
    padding: 0.75rem 1rem; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 0.9rem;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.filter-select:hover {
    border-color: #60a5fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.filter-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-select option {
    background: #1e293b;
    color: white;
    padding: 0.5rem;
}

.filter-select option:hover {
    background: #334155;
}

/* Filter Summary */
.filter-summary {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* Active Filter Styling */
.filter-select:not([value=""]) {
    border-color: #10b981;
    background: linear-gradient(145deg, #064e3b, #1e293b);
    color: #34d399;
}

.filter-select:not([value=""]):hover {
    border-color: #34d399;
}

/* Clear Filters Button */
#clear-all-filters {
    background: linear-gradient(145deg, #dc2626, #991b1b);
}

#clear-all-filters:hover {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Tables */
.data-table { 
    background: linear-gradient(145deg, #334155, #1e293b); 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid rgba(59, 130, 246, 0.2); 
    overflow-x: auto;
}

.table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 800px;
}

.table th { 
    background: linear-gradient(145deg, #1e293b, #0f172a); 
    padding: 1rem; 
    text-align: left; 
    font-weight: 600; 
    color: #60a5fa; 
    border-bottom: 1px solid rgba(59, 130, 246, 0.2); 
    cursor: pointer; 
    white-space: nowrap;
}

.table th:hover { 
    background: linear-gradient(145deg, #334155, #1e293b); 
}

.table td { 
    padding: 1rem; 
    border-bottom: 1px solid rgba(59, 130, 246, 0.1); 
    vertical-align: middle;
}

.table tr:hover { 
    background: rgba(59, 130, 246, 0.1); 
}

/* Selected Row Styling for Bulk Operations */
.table tr.selected-row {
    background: rgba(16, 185, 129, 0.2);
    border-left: 4px solid #10b981;
}

.table tr.selected-row:hover {
    background: rgba(16, 185, 129, 0.3);
}

/* User Avatars */
.user-avatar { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    border: 2px solid #60a5fa; 
}

/* Role Management Buttons */
.role-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.role-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: center;
}

.role-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.role-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-admin {
    background: linear-gradient(145deg, #dc2626, #991b1b);
    color: white;
}

.btn-admin:hover:not(:disabled) {
    background: linear-gradient(145deg, #ef4444, #dc2626);
}

.btn-raider {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
}

.btn-raider:hover:not(:disabled) {
    background: linear-gradient(145deg, #34d399, #10b981);
}

.btn-friends-family {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: white;
}

.btn-friends-family:hover:not(:disabled) {
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
}

.current-indicator {
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid #60a5fa;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}

/* Rank Badges */
.rank-badge { 
    padding: 0.25rem 0.75rem; 
    border-radius: 12px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    white-space: nowrap;
}

.rank-admin { 
    background: linear-gradient(145deg, #dc2626, #991b1b); 
    color: white; 
}

.rank-friends, .rank-family { 
    background: linear-gradient(145deg, #f59e0b, #d97706); 
    color: white; 
}

.rank-raider { 
    background: linear-gradient(145deg, #10b981, #059669); 
    color: white; 
}

.rank-member { 
    background: linear-gradient(145deg, #6b7280, #4b5563); 
    color: white; 
}

/* Status Badges */
.status-badge { 
    padding: 0.25rem 0.75rem; 
    border-radius: 12px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    white-space: nowrap;
}

.status-late { 
    background: linear-gradient(145deg, #f59e0b, #d97706); 
    color: white; 
}

.status-out { 
    background: linear-gradient(145deg, #dc2626, #991b1b); 
    color: white; 
}

/* Analytics */
.analytics-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 1rem; 
    margin-bottom: 1rem; 
}

.analytics-card { 
    background: linear-gradient(145deg, #334155, #1e293b); 
    border: 1px solid rgba(59, 130, 246, 0.2); 
    border-radius: 12px; 
    padding: 1rem; 
    text-align: center; 
}

.analytics-number { 
    font-size: 2rem; 
    font-weight: 700; 
    color: #60a5fa; 
    margin-bottom: 0.5rem; 
}

.analytics-label { 
    color: #9ca3af; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

/* Charts */
.charts-container { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem; 
    margin-bottom: 1rem; 
}

.chart-container { 
    background: linear-gradient(145deg, #334155, #1e293b); 
    border: 1px solid rgba(59, 130, 246, 0.2); 
    border-radius: 12px; 
    padding: 1rem; 
    height: 200px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #9ca3af; 
    font-style: italic; 
}

/* Action Buttons */
.action-buttons { 
    display: flex; 
    gap: 0.5rem; 
    flex-wrap: wrap;
}

/* Pagination */
.pagination { 
    display: flex; 
    justify-content: center; 
    gap: 0.5rem; 
    margin-top: 2rem; 
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
}

.page-btn { 
    background: linear-gradient(145deg, #334155, #1e293b); 
    border: 1px solid rgba(59, 130, 246, 0.2); 
    color: white; 
    padding: 0.5rem 1rem; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    min-width: 40px;
    text-align: center;
}

.page-btn:hover { 
    background: linear-gradient(145deg, #3b82f6, #1d4ed8); 
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.page-btn.active { 
    background: linear-gradient(145deg, #3b82f6, #1d4ed8); 
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Section Titles */
.section-title { 
    color: #60a5fa; 
    margin-bottom: 1rem; 
    font-size: 1.2rem; 
    font-weight: 600; 
}

/* Reason Cell */
.reason-cell { 
    max-width: 200px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}

/* Filter Animation Effects */
.filter-select, .search-input {
    position: relative;
    overflow: hidden;
}

.filter-select::before, .search-input::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.5s;
}

.filter-select:focus::before, .search-input:focus::before {
    left: 100%;
}

/* Filter Indicator Badge */
.filter-indicator {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

/* Multi-Select Support (Future Enhancement) */
.filter-select[multiple] {
    height: auto;
    min-height: 2.5rem;
    max-height: 8rem;
    overflow-y: auto;
}

.filter-select[multiple] option {
    padding: 0.4rem 0.8rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.filter-select[multiple] option:checked {
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    color: white;
}

/* Filter Counter in Tab Title */
.tab-title-with-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-count-badge {
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: white;
    border-radius: 12px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Search Highlight */
.search-highlight {
    background: rgba(251, 191, 36, 0.3);
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: bold;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
    font-style: italic;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-message {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.empty-state-submessage {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* BULK DELETE MODAL STYLES */

/* Bulk Delete Modal Container */
.bulk-delete-modal-container {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

/* HUGE DANGER WARNING ALERT */
.bulk-delete-danger-alert {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 3px solid #ef4444;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 
        0 10px 25px rgba(239, 68, 68, 0.3),
        0 0 0 1px rgba(239, 68, 68, 0.1);
    animation: pulseWarning 2s ease-in-out infinite;
}

@keyframes pulseWarning {
    0%, 100% { 
        border-color: #ef4444;
        box-shadow: 
            0 10px 25px rgba(239, 68, 68, 0.3),
            0 0 0 1px rgba(239, 68, 68, 0.1);
    }
    50% { 
        border-color: #dc2626;
        box-shadow: 
            0 15px 35px rgba(220, 38, 38, 0.4),
            0 0 0 3px rgba(220, 38, 38, 0.2);
    }
}

.danger-alert-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.danger-alert-icon {
    background: linear-gradient(145deg, #dc2626, #991b1b);
    color: white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 
        0 8px 16px rgba(220, 38, 38, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.danger-alert-text {
    flex: 1;
}

.danger-alert-title {
    font-size: 20px;
    font-weight: 800;
    color: #dc2626;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.danger-alert-subtitle {
    font-size: 14px;
    color: #b91c1c;
    font-weight: 600;
    margin-top: 2px;
}

.danger-alert-message {
    color: #7f1d1d;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
    background: rgba(220, 38, 38, 0.1);
    padding: 16px;
    border-radius: 12px;
    border-left: 6px solid #dc2626;
    margin: 0;
}

.danger-alert-message strong {
    color: #dc2626;
    font-weight: 800;
}

/* Summary Grid */
.bulk-delete-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.summary-card {
    background: linear-gradient(145deg, #334155, #1e293b);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
}

.summary-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.summary-card-full {
    grid-column: 1 / -1;
}

.summary-card-label {
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card-value {
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Individual Callouts List */
.bulk-delete-callouts-list {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.callout-item-detail {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: linear-gradient(145deg, #334155, #1e293b);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.2s ease;
}

.callout-item-detail:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(145deg, #475569, #334155);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.callout-item-detail:last-child {
    margin-bottom: 0;
}

.callout-status-icon {
    margin-right: 12px;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.callout-detail-content {
    flex: 1;
    min-width: 0;
}

.callout-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.callout-user-name {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.callout-date-text {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.callout-reason-text {
    color: #cbd5e1;
    font-size: 13px;
    font-style: italic;
    line-height: 1.4;
    margin-top: 4px;
}

/* Bulk Delete Confirm Button */
.bulk-delete-confirm-btn {
    background: linear-gradient(145deg, #dc2626, #991b1b) !important;
    color: white !important;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.bulk-delete-confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.bulk-delete-confirm-btn:hover::before {
    left: 100%;
}

.bulk-delete-confirm-btn:hover {
    background: linear-gradient(145deg, #ef4444, #dc2626) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.bulk-delete-confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .search-filter {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 1200px) {
    .search-filter {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .admin-panel { 
        width: 95vw;
    }
    
    .tabs { 
        flex-direction: column; 
    }
    
    .tab-header { 
        flex-direction: column; 
        gap: 1rem; 
        align-items: stretch; 
    }
    
    .search-filter { 
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .filter-select {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
        padding-right: 2rem;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .analytics-grid { 
        grid-template-columns: 1fr; 
    }
    
    .charts-container { 
        grid-template-columns: 1fr; 
    }
    
    .data-table { 
        overflow-x: auto; 
    }
    
    .role-buttons { 
        flex-direction: column; 
        gap: 0.5rem;
    }
    
    .role-row { 
        flex-direction: column; 
        gap: 0.25rem;
    }
    
    .role-btn {
        min-width: auto;
        width: 100%;
    }
    
    .admin-close-btn { 
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .admin-header {
        padding: 1rem;
        margin-top: 2rem;
    }

    .admin-title {
        font-size: 1.8rem;
    }

    .tab-content {
        padding: 0.75rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .analytics-number {
        font-size: 1.8rem;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
    }
    
    .tab-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .filter-label {
        font-size: 0.7rem;
    }
    
    .filter-summary {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    /* Responsive Design for Bulk Delete */
    .bulk-delete-modal-container {
        width: 95vw;
        max-width: none;
        margin: 1rem;
    }

    .bulk-delete-danger-alert {
        padding: 16px;
        margin-bottom: 20px;
    }

    .danger-alert-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-right: 12px;
    }

    .danger-alert-title {
        font-size: 16px;
    }

    .danger-alert-message {
        font-size: 14px;
        padding: 12px;
    }

    .bulk-delete-summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bulk-delete-callouts-list {
        max-height: 250px;
        padding: 12px;
    }

    .callout-item-detail {
        padding: 10px;
    }

    .callout-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .callout-status-icon {
        font-size: 16px;
    }

    .callout-user-name,
    .callout-date-text,
    .callout-reason-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .admin-panel {
        width: 98vw;
        padding: 0.5rem;
    }
    
    .search-filter {
        padding: 0.5rem;
    }
    
    .filter-group {
        gap: 0.25rem;
    }
    
    .filter-label {
        font-size: 0.65rem;
    }
    
    .filter-select,
    .search-input {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .filter-select {
        padding-right: 1.8rem;
    }
    
    .table {
        min-width: 600px;
    }
    
    .tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .admin-title {
        font-size: 1.5rem;
    }
    
    .admin-subtitle {
        font-size: 1rem;
    }

    .bulk-delete-danger-alert {
        padding: 12px;
    }

    .danger-alert-header {
        margin-bottom: 12px;
    }

    .danger-alert-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        margin-right: 10px;
    }

    .danger-alert-title {
        font-size: 14px;
    }

    .danger-alert-subtitle {
        font-size: 12px;
    }

    .danger-alert-message {
        font-size: 13px;
        padding: 10px;
    }

    .summary-card {
        padding: 12px;
    }

    .summary-card-label {
        font-size: 11px;
    }

    .summary-card-value {
        font-size: 13px;
    }
}