/* /styles/admin.css - COMPLETE REPLACEMENT FILE with Enhanced Filter Styles */

/* Remove all gradients */
* {
    background-image: none;
}

/* Admin font-size control — single source of truth */
.admin-panel {
    --admin-font-size: 20px; /* change this value to adjust admin UI size */
}

/* Universal rule: all descendants inherit the font-size variable */
.admin-panel, .admin-panel * {
    font-size: var(--admin-font-size) !important;
}

/* Override all gradient backgrounds with solid colors - EXCLUDING role buttons */
.admin-panel, .admin-section, .admin-card, .admin-input, .admin-modal, .admin-header, .admin-footer, .admin-table, .admin-row, .admin-cell:not(.grid-cell), .admin-form, .admin-group, .admin-tab, .admin-tab-content, .tabs, .tab, .tab-content {
    background: #1e293b;
}

/* Admin buttons (but not role buttons) */
.admin-button:not(.role-btn) {
    background: #1e293b;
}

/* Button specific colors */
.admin-button.primary, .admin-button.save, .admin-button.add, .admin-close-btn {
    background: #3b82f6;
}

.admin-button.primary:hover, .admin-button.save:hover, .admin-button.add:hover, .admin-close-btn:hover {
    background: #2563eb;
}

.admin-button.danger, .admin-button.delete, .admin-button.remove {
    background: #dc2626;
}

.admin-button.danger:hover, .admin-button.delete:hover, .admin-button.remove:hover {
    background: #b91c1c;
}

.admin-button.warning, .admin-button.edit {
    background: #f59e0b;
}

.admin-button.warning:hover, .admin-button.edit:hover {
    background: #d97706;
}

.admin-button.success {
    background: #22c55e;
}

.admin-button.success:hover {
    background: #16a34a;
}

/* Admin Overlay */
.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure modals are always on top of admin panel */
.callout-modal-overlay,
.modal-overlay {
    position: fixed;
    z-index: 10050;
}

/* Admin Layout */
.admin-panel { 
    width: 100vw; 
    height: 100vh;
    max-width: 100vw;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
    gap: 1rem;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 2px solid #0f172a;
    border-radius: 2px;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.admin-header { 
    background: linear-gradient(145deg, #1e293b, #0f172a); 
    border: 2px solid #0f172a; 
    border-radius: 2px; 
    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: var(--admin-font-size) !important; 
    font-weight: 700; 
    color: #60a5fa; 
    margin-bottom: 0.5rem; 
}

.admin-subtitle { 
    color: #9ca3af; 
    font-size: var(--admin-font-size) !important; 
}

/* 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: 2px; 
    cursor: pointer; 
    font-weight: 700;
    font-size: var(--admin-font-size) !important;
     
    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; 
    padding: 1rem; 
    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: 2px; 
    cursor: pointer; 
    font-weight: 600; 
     
    flex: 1; 
    text-align: center; 
    font-size: var(--admin-font-size) !important; 
}

.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 { 
    padding: 1rem; 
    flex: 1;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.tab-panel { 
    display: none; 
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    flex-direction: column;
}

.tab-panel.active { 
    display: flex; 
    flex-direction: column;
}

/* Tab Headers */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.tab-title { 
    font-size: var(--admin-font-size) !important; 
    font-weight: 700; 
    color: #60a5fa; 
}

.tab-actions { 
    display: flex; 
    gap: 1rem; 
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 400;
    
    font-size: var(--admin-font-size) !important;
}

.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: #6b7280;
}

.btn-danger {
    background: #dc2626;
    color: white;
}
.btn-danger:hover {
    background: #b91c1c;
}
.btn-warning {
    background: #f59e0b;
    color: #111827;
}
.btn-warning:hover {
    background: #d97706;
}
.btn-pill {
    border-radius: 2px;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: var(--admin-font-size) !important;
}

