﻿html {
  font-size: 13px;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #f8faff;
    font-size: 0.95rem;
}

.table-primary {
    background-color: #3BB8DB !important;
    color: #fff;
}

.btn-primary {
    background-color: #3BB8DB;
    border-color: #33a8c9;
}

    .btn-primary:hover {
        background-color: #32aecf;
    }
/* Variables de color para mantener consistencia */
:root {
    --primary: #3BB8DB;
    --primary-light: #e7f7fb;
    --secondary: #6c757d;
    --success: #4cc9a7;
    --danger: #f72585;
    --warning: #f8961e;
    --light: #f8f9fa;
    --dark: #212529;
    --card-bg: #ffffff;
    --body-bg: #f5f7fb;
    --border-color: #e0e7ff;
}
.dashboard-container {
    background: #f8f9fc;
}

/* 🔹 Cards de Resumen */
.metric-card {
    border-radius: 18px;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .metric-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

/* 🔹 Menú Principal */
.menu-card {
    border-radius: 22px;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .menu-card:hover {
        transform: translateY(-6px) scale(1.05);
        box-shadow: 0 18px 30px rgba(0,0,0,0.25);
    }


/* Estilos generales */
body {
    background-color: var(--body-bg);
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

/* Contenedor principal */
.container {
    max-width: 1400px;
}

/* Tarjeta principal */
.main-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background-color: var(--card-bg);
    overflow: hidden;
}

/* Cabecera de la tabla */
.table thead th {
    background-color: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
}

/* Filas de la tabla */
.table tbody td {
    padding: 0.9rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.table tbody tr:hover {
    background-color: var(--primary-light);
    transition: background-color 0.2s;
}

/* Botones */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    border: none;
    font-size: 0.875rem;
}

.btn-success {
    background-color: var(--success);
}

.btn-outline-success {
    color: var(--success);
    border: 1px solid var(--success);
}

    .btn-outline-success:hover {
        background-color: var(--success);
        color: white;
    }

.btn-outline-danger {
    color: var(--danger);
    border: 1px solid var(--danger);
}

    .btn-outline-danger:hover {
        background-color: var(--danger);
        color: white;
    }

/* Badges */
.badge {
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Títulos */
h2 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Icono del encabezado */
.header-icon {
    background-color: var(--primary-light);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

/* Barra de búsqueda */
.search-container {
    max-width: 300px;
}

.search-box {
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

    .search-box:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
    }

/* Mantenimientos semestrales */
.info-chip {
    border-radius: 12px;
    padding: 14px 16px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.info-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.cronograma-table .sticky-col {
    position: sticky;
    left: 0;
    background: #fff;
    box-shadow: 3px 0 8px rgba(0,0,0,0.05);
    z-index: 2;
}

.cronograma-table table { min-width: 720px; }

.cronograma-table .badge { font-size: 0.85rem; }

/* Filtros */
.filter-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* Responsividad */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .table thead th, .table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

/* Indicador de carga */
.loading {
    display: none;
    text-align: center;
    padding: 1rem;
}

.spinner-border {
    color: var(--primary);
}

/* Efectos para modales: alineados con Bootstrap, asegurando interacción por encima del layout */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: none;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal.show {
    display: block;
}

.modal-dialog {
    margin: 0.5rem auto;
    pointer-events: none;
}

.modal.show .modal-dialog {
    pointer-events: auto;
}

.modal-content {
    border-radius: 0.5rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background-color: rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Mejoras visuales adicionales */
.action-buttons {
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--secondary);
}

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: var(--primary-light);
    }
/* --- Modern UI helpers --- */
.section-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.section-heading .heading-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(67, 97, 238, 0.08);
    color: #4361ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.9rem;
    transition: all 0.2s ease;
    box-shadow: none;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.15);
}

.card-lift {
    border: 1px solid rgba(17, 26, 61, 0.06);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.15);
}

.table-responsive .table {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.table thead th {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background: rgba(67, 97, 238, 0.08);
}

.badge-soft-primary { background: rgba(67, 97, 238, 0.15); color: #1f3bb3; }
.badge-soft-success { background: rgba(76, 201, 167, 0.15); color: #137b5c; }
.badge-soft-warning { background: rgba(248, 150, 30, 0.16); color: #9c5b05; }
.badge-soft-danger { background: rgba(247, 37, 133, 0.14); color: #9c0b63; }

.action-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 97, 238, 0.12);
    color: #2f49d0;
    transition: all 0.2s ease;
}

.action-icon:hover {
    background: rgba(67, 97, 238, 0.2);
    color: #0f172a;
}

.list-group-modern .list-group-item {
    border: none;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.35rem;
    background: rgba(15, 23, 42, 0.015);
}

.list-group-modern .list-group-item:hover {
    background: rgba(67, 97, 238, 0.08);
}

.usuarios-hero {
    background: linear-gradient(120deg, rgba(67, 97, 238, 0.06), rgba(17, 25, 61, 0.05));
    border: 1px solid rgba(17, 26, 61, 0.06);
    backdrop-filter: blur(4px);
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(17, 26, 61, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    min-width: 110px;
}

.stat-chip .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.4px;
}

.stat-chip .value {
    font-weight: 800;
    color: #111827;
    font-size: 1.05rem;
}

.usuarios-table thead th {
    background: #3BB8DB;
    color: #fff;
    font-weight: 700;
}

.usuarios-table tbody td {
    font-size: 0.95rem;
}

.compact-search .form-control {
    border-radius: 0 12px 12px 0;
    min-width: 260px;
}

.compact-search .input-group-text {
    border-radius: 12px 0 0 12px;
    border-right: 0;
}

@media (max-width: 576px) {
    .compact-search .form-control {
        min-width: 200px;
    }
}


/* Tipografía compacta para módulos de Usuarios y Equipos */
body.compact-module {
    font-size: 0.9rem;
}

body.compact-module .content-panel {
    font-size: 0.9rem;
}

body.compact-module .content-panel h1,
body.compact-module .content-panel h2,
body.compact-module .content-panel h3,
body.compact-module .content-panel h4,
body.compact-module .content-panel h5,
body.compact-module .content-panel h6 {
    font-size: 0.95em;
}

body.compact-module .content-panel .table thead th {
    font-size: 0.8rem;
}

body.compact-module .content-panel .table tbody td,
body.compact-module .content-panel .table tbody th,
body.compact-module .content-panel .form-label,
body.compact-module .content-panel .form-control,
body.compact-module .content-panel .form-select,
body.compact-module .content-panel .btn,
body.compact-module .content-panel .badge,
body.compact-module .content-panel p,
body.compact-module .content-panel li,
body.compact-module .content-panel span,
body.compact-module .content-panel a {
    font-size: 0.9rem;
}
