/* Admin Overlay Styles */
.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.admin-overlay.active {
    display: flex;
}

.admin-panel {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.admin-login {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.admin-login h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.admin-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.admin-form-group input, .admin-form-group select, .admin-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.admin-form-group input:focus, .admin-form-group select:focus, .admin-form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.admin-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    margin: 5px;
}

.admin-btn:hover {
    background: #5855eb;
}

.admin-btn.secondary {
    background: #6b7280;
}

.admin-btn.secondary:hover {
    background: #4b5563;
}

.admin-btn.danger {
    background: #ef4444;
}

.admin-btn.danger:hover {
    background: #dc2626;
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
}

.admin-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.admin-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.admin-tab.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.admin-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.admin-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f9fafb;
}

.admin-item-info {
    flex: 1;
}

.admin-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.admin-item-meta {
    font-size: 12px;
    color: #6b7280;
}

.admin-item-actions {
    display: flex;
    gap: 8px;
}

.admin-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 5px;
}

.admin-close:hover {
    color: #333;
}

.admin-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #6366f1;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    z-index: 1000;
    transition: all 0.3s;
}

.admin-trigger:hover {
    background: #5855eb;
    transform: scale(1.1);
}

.admin-status {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-status.active {
    background: #dcfce7;
    color: #166534;
}

.admin-status.hidden {
    background: #fef3c7;
    color: #92400e;
}

.admin-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 8px;
}

.admin-user-name {
    font-weight: 600;
    color: #333;
}

.admin-user-role {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .admin-panel {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .admin-tab {
        flex: 1;
        min-width: 120px;
    }
    
    .admin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

