/* ===== ADMIN PANEL ===== */
.admin-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.admin-panel.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-content {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 16px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(148,163,184,0.3);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    animation: adminSlideIn 0.4s ease-out;
}

@keyframes adminSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(148,163,184,0.2);
    background: rgba(30,41,59,0.5);
    border-radius: 16px 16px 0 0;
}

.admin-header h2 {
    margin: 0;
    color: #e5e7eb;
    font-size: 1.5rem;
}

.close-admin {
    background: rgba(239,68,68,0.2);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.close-admin:hover {
    background: rgba(239,68,68,0.3);
    transform: scale(1.1);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    background: rgba(15,23,42,0.6);
    padding: 0;
    border-bottom: 1px solid rgba(148,163,184,0.2);
}

.admin-tab {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.admin-tab:hover {
    color: #e5e7eb;
    background: rgba(30,41,59,0.5);
}

.admin-tab.active {
    color: #22c55e;
    background: rgba(34,197,94,0.1);
    border-bottom-color: #22c55e;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 24px;
}

.tab-content.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(148,163,184,0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34,197,94,0.15);
    border-radius: 12px;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #22c55e;
    line-height: 1;
}

.stat-text {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Admin Sections */
.admin-section {
    margin-bottom: 32px;
}

.admin-section h3 {
    color: #e5e7eb;
    margin: 0 0 16px 0;
    font-size: 1.2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.search-input {
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: #e5e7eb;
    font-size: 0.9rem;
    width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: #22c55e;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15,23,42,0.6);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.2);
}

.admin-table thead {
    background: rgba(30,41,59,0.8);
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #d1d5db;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148,163,184,0.1);
    color: #e5e7eb;
}

.admin-table tr:hover {
    background: rgba(30,41,59,0.4);
}

.action-btn {
    background: rgba(59,130,246,0.2);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 4px;
    padding: 4px 8px;
    margin: 0 2px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(59,130,246,0.3);
}

.action-btn.view {
    background: rgba(34,197,94,0.2);
    color: #22c55e;
    border-color: rgba(34,197,94,0.3);
}

.action-btn.view:hover {
    background: rgba(34,197,94,0.3);
}

/* Settings */
.settings-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(148,163,184,0.2);
    border-radius: 8px;
}

.setting-item label {
    color: #d1d5db;
    font-weight: 500;
}

.setting-item input {
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: 6px;
    padding: 6px 10px;
    color: #e5e7eb;
    width: 100px;
}

.setting-item input[type="checkbox"] {
    width: auto;
    margin-left: 8px;
}

.settings-actions, .stats-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .admin-header {
        padding: 16px 20px;
    }
    
    .tab-content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
    }
    
    .admin-table {
        font-size: 0.8rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 12px;
    }
    
    .setting-item {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .settings-actions,
    .stats-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        flex: none;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin: 0 auto;
    }
}

/* ===== NOTIFICATION BELL ===== */
.notification-bell {
    position: relative;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.3);
    color: #60a5fa;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    margin-right: 12px;
}

.notification-bell:hover {
    background: rgba(59,130,246,0.2);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239,68,68,0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== NOTIFICATIONS MODAL ===== */
.notifications-content {
    max-width: 600px;
    width: 100%;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(148,163,184,0.2);
}

.notifications-header h2 {
    margin: 0;
    font-size: 24px;
    color: #f1f5f9;
}

.notifications-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-text {
    background: none;
    border: none;
    color: #60a5fa;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.notifications-body {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.no-notifications {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.no-notifications p {
    font-size: 18px;
    margin: 0;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.notification-item.unread {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.3);
}

.notification-item.read {
    background: rgba(148,163,184,0.05);
}

.notification-item:hover {
    background: rgba(59,130,246,0.15);
    transform: translateX(5px);
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 5px;
    font-size: 15px;
}

.notification-message {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-time {
    color: #94a3b8;
    font-size: 12px;
}

.notification-unread-dot {
    position: absolute;
    top: 20px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
}

/* Notification types */
.notification-item.success .notification-icon { color: #22c55e; }
.notification-item.warning .notification-icon { color: #f59e0b; }
.notification-item.error .notification-icon { color: #ef4444; }
.notification-item.info .notification-icon { color: #60a5fa; }

/* ===== NOTIFICATION FORM IN ADMIN ===== */
.notification-form {
    max-width: 700px;
}

.notification-form .form-group {
    margin-bottom: 20px;
}

.notification-form label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 500;
}

.notification-form input[type="text"],
.notification-form textarea,
.notification-form select {
    width: 100%;
    padding: 12px;
    background: rgba(30,41,59,0.9);
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 14px;
    transition: all 0.3s ease;
}

.notification-form select option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 10px;
}

.notification-form input[type="text"]:focus,
.notification-form textarea:focus,
.notification-form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.notification-form textarea {
    resize: vertical;
    min-height: 100px;
}

.notification-form input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.notification-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ===== PUBLIC NOTIFICATION MODAL (FULLSCREEN) ===== */
.public-notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: modalFadeIn 0.3s ease-out;
}

.public-notification-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-notification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.public-notification-content {
    position: relative;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 2px solid #3b82f6;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.3);
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-icon-large {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.notification-title-large {
    font-size: 32px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.notification-message-large {
    font-size: 18px;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
}

.notification-time {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.btn-close-notification {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.btn-close-notification:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-close-notification:active {
    transform: translateY(0);
}

/* Type-specific colors */
.public-notification-content.success {
    border-color: #22c55e;
    box-shadow: 0 25px 50px rgba(34, 197, 94, 0.3);
}

.public-notification-content.warning {
    border-color: #f59e0b;
    box-shadow: 0 25px 50px rgba(245, 158, 11, 0.3);
}

.public-notification-content.error {
    border-color: #ef4444;
    box-shadow: 0 25px 50px rgba(239, 68, 68, 0.3);
}

.public-notification-content.success .btn-close-notification {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.public-notification-content.warning .btn-close-notification {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.public-notification-content.error .btn-close-notification {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

