/* 
* Estilos personalizados
* Sistema Escolar - ESCUELA SECUNDARIA TECNICA #82
*/

/* Variables globales */
:root {
    --color-primario: #0d6efd;
    --color-secundario: #6c757d;
    --color-exito: #198754;
    --color-peligro: #dc3545;
    --color-advertencia: #ffc107;
    --color-info: #0dcaf0;
    --color-texto: #212529;
    --color-fondo: #f8f9fa;
}

/* Estilos generales */
body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 60px;
}

/* Encabezado */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    margin-right: 10px;
}

/* Contenedor principal */
.main-container {
    padding: 20px;
    min-height: calc(100vh - 140px);
}

/* Tarjetas */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    font-weight: 500;
}

/* Tablas */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.table th {
    background-color: var(--color-primario);
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Formularios */
.form-label {
    font-weight: 500;
}

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

.required:after {
    content: ' *';
    color: var(--color-peligro);
}

/* Botones */
.btn-primary {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
}

.btn-outline-primary {
    color: var(--color-primario);
    border-color: var(--color-primario);
}

.btn-outline-primary:hover {
    background-color: var(--color-primario);
    color: white;
}

/* Pie de página */
footer {
    background-color: var(--color-texto);
    color: white;
    padding: 15px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

/* Responsive */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.25rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-sm-block {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Estilos para credenciales */
.credencial {
    width: 86mm;
    height: 54mm;
    border: 1px solid #ddd;
    border-radius: 10px;
    position: relative;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 10px;
    page-break-inside: avoid;
}

.credencial-header {
    padding: 5px;
    display: flex;
    align-items: center;
}

.credencial-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.credencial-title {
    margin-left: 10px;
    font-size: 14px;
    font-weight: bold;
}

.credencial-body {
    display: flex;
    padding: 5px;
}

.credencial-foto {
    width: 80px;
    height: 100px;
    background-color: #f0f0f0;
    text-align: center;
    line-height: 100px;
    font-size: 12px;
    color: #999;
}

.credencial-datos {
    margin-left: 10px;
    font-size: 12px;
}

.credencial-nombre {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.credencial-footer {
    text-align: center;
    padding: 5px;
    font-size: 10px;
}

/* Estilos para imprimir */
@media print {
    body {
        background-color: white;
        margin: 0;
        padding: 0;
    }
    
    .no-print {
        display: none !important;
    }
    
    .main-container {
        padding: 0;
        margin: 0;
    }
    
    .credencial {
        page-break-inside: avoid;
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}