/**
 * Archivo: /asambleas/assets/css/styles.css
 * Estilos principales de la plataforma de inscripciones RUS
 * Desarrollado por: Andrés Fiorotto - Laboratorio Digital RUS
 */

:root {
    --rus-blue: #0066cc;
    --rus-light-blue: #4d94ff;
    --rus-dark-blue: #004499;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
    --danger-red: #dc3545;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    color: var(--dark-gray);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.logo-rus {
    height: 60px;
    width: auto;
}

/* Títulos */
h1, h2, h3 {
    color: var(--rus-blue);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    font-weight: 300;
}

h2 {
    font-size: 2rem;
    font-weight: 400;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Títulos específicos para card-header (blancos con degradado) */
.card-header h2,
.card-header h3 {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-weight: 600;
    margin-bottom: 0;
}

/* Fallback para navegadores que no soporten background-clip */
@supports not (-webkit-background-clip: text) {
    .card-header h2,
    .card-header h3 {
        color: white;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
}

/* Contenedor principal */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Tarjetas */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    background: linear-gradient(135deg, var(--rus-blue) 0%, var(--rus-light-blue) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.card-body {
    padding: 2rem;
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--rus-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-control:disabled {
    background-color: var(--light-gray);
    cursor: not-allowed;
}

/* Select personalizado */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Checkbox personalizado */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.5rem;
    accent-color: var(--rus-blue);
}

.form-check-label {
    font-size: 0.95rem;
    cursor: pointer;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rus-blue) 0%, var(--rus-light-blue) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--rus-dark-blue) 0%, var(--rus-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-green) 0%, #34ce57 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, var(--success-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-orange) 0%, #ff8c42 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-red) 0%, #e55353 100%);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--rus-blue);
    color: var(--rus-blue);
}

.btn-outline:hover {
    background: var(--rus-blue);
    color: white;
}

/* Alertas */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: var(--success-green);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--danger-red);
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: var(--rus-blue);
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: var(--warning-orange);
    color: #856404;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--rus-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tablas */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    background: var(--rus-blue);
    color: white;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: var(--light-gray);
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--rus-blue);
    display: block;
}

.stat-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    background: white;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.logo-lab {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Utilidades */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.d-none { display: none; }
.d-block { display: block; }