﻿
/* =========================================================
   ADMIN MODERN
   Estilos reutilizables para las vistas administrativas
   ========================================================= */


/* =========================================================
   ENCABEZADO DE PÁGINA
   ========================================================= */

.modern-page-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(13, 110, 253, 0.10);
    color: #0d6efd;

    flex-shrink: 0;
}

.modern-page-icon .material-icons {
    font-size: 23px;
}

.modern-page-title {
    color: #212529;
    letter-spacing: -0.2px;
}

.modern-page-subtitle {
    display: block;

    margin-top: 2px;

    color: #8a94a6;

    font-size: 0.78rem;
    font-weight: 400;

    text-transform: none;
}


/* =========================================================
   BOTÓN PRINCIPAL
   ========================================================= */

.modern-btn-primary {
    min-height: 38px;

    padding: 7px 15px;

    border-radius: 9px !important;

    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.18);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.modern-btn-primary:hover {
    transform: translateY(-1px);

    box-shadow: 0 5px 12px rgba(13, 110, 253, 0.24);
}


/* =========================================================
   CARD PRINCIPAL
   ========================================================= */

.modern-content-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e9ecef;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.025),
        0 8px 25px rgba(0, 0, 0, 0.035);
}


/* =========================================================
   HEADER DE LA CARD
   ========================================================= */

.modern-content-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 10px 12px;

    border-bottom: 1px solid #edf0f2;

    background: #ffffff;
}

.modern-content-card-title {
    margin: 0;

    color: #343a40;

    font-size: 0.92rem;
    font-weight: 700;
}

.modern-content-card-description {
    display: block;

    margin-top: 3px;

    color: #98a1ad;

    font-size: 0.77rem;
}


/* =========================================================
   CONTENEDOR DE TABLA
   ========================================================= */

.modern-table-container {
    position: relative;

    width: 100%;

    min-height: 500px;

    background: #ffffff;
}


/* =========================================================
   TABLA
   ========================================================= */

.modern-table {
    margin-bottom: 0 !important;

    width: 100%;
}

.modern-table tbody tr {
    transition: background-color 0.15s ease;
}

.modern-table tbody tr:hover {
    background-color: #f8faff;
}

.modern-table tbody td {
    border-bottom: 1px solid #f0f2f4;

    vertical-align: middle;
}


/* =========================================================
   LOADING
   ========================================================= */

.modern-loading {
    min-height: 100px;
}

.modern-loading-content {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;
}

.modern-loading-text {
    color: #8a94a6;

    font-size: 0.78rem;
}


/* =========================================================
   ESTADO VACÍO
   ========================================================= */

.modern-empty-state {
    min-height: 250px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;
}

.modern-empty-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 14px;

    background: #f4f6f8;

    color: #8a94a6;
}

.modern-empty-icon .material-icons {
    font-size: 25px;
}

.modern-empty-state h2 {
    margin-bottom: 5px;

    color: #495057;

    font-weight: 600;
}

.modern-empty-state p {
    margin: 0;

    color: #98a1ad;

    font-size: 0.8rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .modern-page-title {
        font-size: 1rem !important;
    }

    .modern-page-subtitle {
        font-size: 0.72rem;
    }

    .modern-btn-primary {
        padding: 7px 11px;
    }

    .modern-btn-primary span {
        display: none;
    }

    .modern-content-card-header {
        padding: 15px 16px;
    }

}




/* =========================================================
   TABS - ATLETAS
   ========================================================= */
.modern-atletas-tabs {
    border-bottom: 1px solid #e5e9ed;
    gap: 4px;
}

.modern-atletas-tabs .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border: none !important;
    border-radius: 9px 9px 0 0;
    color: #6c757d;
    font-size: 0.84rem;
    font-weight: 600;
    background: transparent;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .modern-atletas-tabs .nav-link:hover {
        color: #0d6efd;
        background: rgba(13, 110, 253, 0.05);
    }

    .modern-atletas-tabs .nav-link.active {
        color: #0d6efd;
        background: #fff;
    }

        .modern-atletas-tabs .nav-link.active::after {
            content: "";
            position: absolute;
            left: 12px;
            right: 12px;
            bottom: -1px;
            height: 2px;
            border-radius: 2px;
            background: #0d6efd;
        }

.modern-tab-icon {
    font-size: 18px;
    line-height: 1;
}


/* =========================================================
   BOTÓN DROPDOWN DE TABS
   ========================================================= */

.modern-tab-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border: none;
    color: #6c757d;
    background: #f5f6f8;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .modern-tab-dropdown:hover {
        color: #0d6efd;
        background: #eaf2ff;
    }


/* =========================================================
   MENÚ DE ACCIONES
   ========================================================= */

.modern-actions-menu {
    min-width: 175px;
    padding: 6px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

    .modern-actions-menu .dropdown-item {
        padding: 9px 10px;
        border-radius: 7px;
        font-size: 0.82rem;
        transition: background-color 0.15s ease;
    }

        .modern-actions-menu .dropdown-item:hover {
            background: #f5f8ff;
        }


/* =========================================================
   ICONOS DE SECCIÓN
   ========================================================= */

.modern-section-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
}

    .modern-section-icon .material-icons {
        font-size: 20px;
    }


/* =========================================================
   CALENDARIO / NAVEGACIÓN DE FECHA
   ========================================================= */

.modern-calendar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
}

.modern-calendar-date {
    min-width: 150px;
    padding: 7px 18px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.035);
}

    .modern-calendar-date h5 {
        color: #343a40;
        font-size: 0.95rem;
    }

    .modern-calendar-date small {
        font-size: 0.75rem;
    }

.modern-calendar-button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
    border-radius: 9px !important;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

    .modern-calendar-button:hover {
        transform: translateY(-1px);
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .modern-atletas-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

        .modern-atletas-tabs .nav-link {
            white-space: nowrap;
            padding: 9px 12px;
        }

    .modern-calendar-header {
        gap: 10px;
    }

    .modern-calendar-date {
        min-width: 125px;
    }
}

