/* Admin Panel Common Styles */
:root {
    --maroon: #6b1d1d;
    --gold: #f5b041;
    --light-gold: #f8d7a4;
    --cream: #fffaf2;
    --light-cream: #ffe8cc;
    --dark-maroon: #4a1414;
    --admin-bg: #f8f9fa;
    --sidebar-bg: #2c3e50;
    --sidebar-hover: #34495e;
    --text-dark: #2d3748;
    --text-light: #718096;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--admin-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--maroon) 0%, var(--dark-maroon) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.om-symbol {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    animation: rotate 3s linear infinite;
}

.om-symbol svg {
    width: 100%;
    height: 100%;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-maroon { color: var(--maroon) !important; }
.text-gold { color: var(--gold) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }

.bg-maroon { background-color: var(--maroon) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-info { background-color: var(--info) !important; }

.btn-maroon {
    background: var(--maroon);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-maroon:hover {
    background: var(--dark-maroon);
    color: white;
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: #e09a2d;
    color: white;
    transform: translateY(-2px);
}

/* Notification System */
.admin-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--info);
}

.admin-notification-success {
    border-left-color: var(--success);
}

.admin-notification-error {
    border-left-color: var(--danger);
}

.admin-notification-warning {
    border-left-color: var(--warning);
}

.admin-notification-info {
    border-left-color: var(--info);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-content i.fa-check-circle { color: var(--success); }
.notification-content i.fa-exclamation-circle { color: var(--danger); }
.notification-content i.fa-exclamation-triangle { color: var(--warning); }
.notification-content i.fa-info-circle { color: var(--info); }

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    margin-left: auto;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: var(--text-dark);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .loading-content {
        padding: 0 20px;
    }
    
    .om-symbol {
        width: 60px;
        height: 60px;
    }
    
    .loading-bar {
        width: 150px;
    }
    
    .admin-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}


.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: var(--sidebar-bg);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.admin-sidebar.collapsed {
    width: 80px;
}

.admin-main {
    margin-left: 280px;
    min-height: 100vh;
    background: var(--admin-bg);
    transition: all 0.3s ease;
}

.admin-sidebar.collapsed + .admin-main {
    margin-left: 80px;
}

/* Sidebar Styles */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--sidebar-hover);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    color: var(--gold);
}

.sidebar-nav {
    flex: 1;
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: white;
    background: var(--sidebar-hover);
}

.nav-link.active {
    color: white;
    background: var(--maroon);
    border-right: 3px solid var(--gold);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--sidebar-hover);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.user-avatar i {
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.btn-logout {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

/* Header Styles */
.admin-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    font-size: 1.5rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.notification-bell:hover {
    color: var(--maroon);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-greeting {
    color: var(--text-dark);
    font-weight: 500;
}

/* Confirmation Modal Styles */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
 background: rgba(0, 0, 0, 0.5);
     display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.confirmation-modal.active {
    display: flex;
}

.confirmation-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confirmation-icon {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: 1rem;
}

.confirmation-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.confirmation-message {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-confirm {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-confirm:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Responsive for modal */
@media (max-width: 768px) {
    .confirmation-content {
        margin: 20px;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
}