/* Estilos del Panel de Administración */

.membership-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-box {
    background: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 150px;
    border-left: 4px solid #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-box h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #0073aa;
    display: block;
}

.membership-actions {
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.membership-actions .button {
    margin-right: 10px;
}

.membership-filters {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.membership-filters select,
.membership-filters input {
    margin-right: 10px;
    margin-bottom: 5px;
}

.membership-badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.membership-none { background: #666; }
.membership-basic { background: #0277bd; }
.membership-premium { background: #7b1fa2; }
.membership-vip { background: #e65100; }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-content.large {
    max-width: 800px;
}

.modal-content h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}

.access-level {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.level-0 { background: #666; }
.level-1 { background: #1976d2; }
.level-2 { background: #7b1fa2; }
.level-3 { background: #f57c00; }
.level-4 { background: #388e3c; }
.level-5 { background: #d32f2f; }

.status-toggle {
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.status-toggle.active {
    background: #4caf50;
    color: white;
}

.status-toggle.inactive {
    background: #f44336;
    color: white;
}

.status-toggle:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.feature-item {
    display: flex;
    margin: 8px 0;
    align-items: center;
    gap: 10px;
}

.feature-item input {
    flex: 1;
}

.plans-header {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-info-box {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .membership-stats {
        flex-direction: column;
    }
    
    .stat-box {
        min-width: auto;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .membership-filters {
        text-align: center;
    }
    
    .membership-filters select,
    .membership-filters input {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    animation: fadeIn 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Notificaciones */
.membership-notice {
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

.membership-notice.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.membership-notice.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.membership-notice.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}