/* assets/css/styles.css - Estilos globales */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* === ESTILOS GENERALES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 30px 0 50px 0;
}

/* === TARJETAS === */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 15px 20px;
    border: none;
    font-weight: 600;
}

/* === BOTONES === */
.btn {
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #0d6b2b);
    border: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #a71d2a);
    border: none;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* === ESTADOS DE PAGO === */
.badge-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-cancelled {
    background-color: #e2e3e5;
    color: #383d41;
}

/* === RANGOS DE AFILIADOS === */
.rank-badge {
    display: inline-block;
    padding: 5px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-affiliate {
    background: #6c757d;
    color: white;
}

.rank-leader {
    background: #28a745;
    color: white;
}

.rank-director {
    background: #007bff;
    color: white;
}

.rank-vicepresident {
    background: #ffc107;
    color: #212529;
}

.rank-president {
    background: #dc3545;
    color: white;
}

/* === PROGRESS BAR === */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #0056b3);
    transition: width 0.6s ease;
}

/* === FORMULARIOS === */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* === TABLAS === */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: var(--dark-color);
    color: white;
    border: none;
    padding: 15px;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* === DASHBOARD === */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .icon-primary {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.stat-card .icon-success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.stat-card .icon-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.stat-card .icon-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* === REPRODUCTOR DE VIDEO === */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-progress {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    padding: 0 20px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
}

/* === ANIMACIONES === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* === UTILIDADES === */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}