/* Core Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-button {
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tab-button.active {
    background: #4CAF50;
    color: white;
}

.tab-content {
    display: none;
    padding: 20px 0;
    min-height: 400px;
}

.tab-content.active {
    display: block;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: white;
}

.admin-management-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
}

.add-admin-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.admin-input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.admin-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.btn-primary {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.admin-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-user-info strong {
    font-size: 18px;
    color: #4CAF50;
}

.admin-role {
    color: #ffc107;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
}

.admin-status.active {
    color: #4CAF50;
    font-weight: bold;
}

.admin-status.inactive {
    color: #FF5252;
    font-weight: bold;
}

.admin-user-actions {
    display: flex;
    gap: 10px;
}

.btn-toggle, .btn-delete {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-toggle {
    background: #2196F3;
    color: white;
}

.btn-toggle:hover {
    background: #1976D2;
}

.btn-delete {
    background: #F44336;
    color: white;
}

.btn-delete:hover {
    background: #D32F2F;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #cccccc;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #ff5252;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #4CAF50;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.admin-actions button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-actions button:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .admin-container {
        padding: 15px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .admin-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .add-admin-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-user-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .tab-button {
        font-size: 14px;
        padding: 12px 20px;
    }
}
