body {
    background-color: #F5F6FA;
    font-family: 'Inter', sans-serif;
    font-family: "Nunito Sans", sans-serif;
    min-height: 100vh;
}

/* --- Barra Lateral (Desktop) --- */
.sidebar {
    width: 260px;
    background-color: #ffffff;
    min-height: 100vh;
    font-family: "Titillium Web", sans-serif;
}

.bg-azul {
    background-color: #3A6EC2 !important;
}

.sidebar .nav-link {
    color: #555;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    border: 0;
    width: 100%;
}

    .sidebar .nav-link i {
        font-size: 1.1rem;
        margin-right: 0.75rem;
        width: 20px;
        text-align: center;
    }

    .sidebar .nav-link.active {
        background-color: #31BCF4;
        color: #ffffff;
        border-radius: 0.5rem;
    }

    .sidebar .nav-link:hover:not(.active) {
        background-color: #f1f1f1;
    }

.sidebar-logo {
    padding: 1.35rem 1.5rem;
}

    .sidebar-logo img {
        max-height: 71px;
    }

/* --- Barra Superior (Topbar) --- */
.topbar {
    background-color: #ffffff;
    padding: 0.75rem 1.5rem;
}

    .topbar .navbar-brand img {
        max-height: 63px;
    }

.topbar-icon {
    font-size: 1.3rem;
    color: #555;
    margin-left: 1rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

    .dropdown-item.active, .dropdown-item:active {
        background-color: #31BCF4;
    }

.user-dropdown-toggle::after {
    display: none;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: inline-block;
    margin-right: 0.5rem;
}

/* --- Contenido Principal --- */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-content {
    padding: 1.5rem;
    flex-grow: 1;
}

/* Tarjetas de Estadísticas */
.stat-card {
    border: 0;
    border-radius: 0.75rem;
    height: 100%;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-certs {
    background-color: #e6e0ff;
    color: #8a6fff;
}

.stat-icon-credits {
    background-color: #fff4d8;
    color: #ffc64f;
}

.stat-icon-ganados {
    background-color: #fff0d8;
    color: #fdaa4f;
}

/* Tarjetas de Tablas */
.table-card {
    border: 0;
    border-radius: 0.75rem;
}

    .table-card .table {
        margin-bottom: 0;
        font-size: 0.9rem;
    }

        .table-card .table th {
            font-weight: 600;
            color: #888;
            font-size: 0.8rem;
            text-transform: uppercase;
            border: 0;
        }

        .table-card .table td {
            vertical-align: middle;
            border-top: 1px solid #f0f0f0;
            padding: 1rem 0.75rem;
        }

.product-img {
    width: 32px;
    height: 32px;
    border-radius: 0.25rem;
    background-color: #eee;
    margin-right: 0.75rem;
}

/* Badges de Status */
.badge.bg-success-light {
    background-color: #e6f7f0;
    color: #00b060;
}

.badge.bg-warning-light {
    background-color: #fff8e6;
    color: #ffb020;
}

.badge.bg-danger-light {
    background-color: #ffeeed;
    color: #f04438;
}

/* Paginación */
.pagination-container {
    background-color: #f9f9f9;
    border-top: 1px solid #dee2e6;
}

    .pagination-container .page-link {
        border: 0;
        background-color: transparent;
        color: #555;
    }

    .pagination-container .page-item.disabled .page-link {
        color: #aaa;
    }

    .pagination-container .page-item .page-link:hover {
        background-color: #eee;
    }

/* --- Sección Premios --- */
.category-card {
    border: 0;
    border-radius: 0.75rem;
}

    .category-card .list-group-item {
        border: 0;
        font-weight: 500;
        color: #333;
        cursor: pointer;
    }

        .category-card .list-group-item.active {
            /*background-color: transparent;*/
            background-color: #0d6efd;
            color: #fff;
            border-radius: 0.5rem;
            font-weight: bold;
        }

        .category-card .list-group-item:hover:not(.active) {
            background-color: #f1f1f1;
        }

.category-header {
    background-color: #31BCF4;
    color: #fff;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.product-card {
    border: 0;
    border-radius: 0.75rem;
    transition: box-shadow 0.2s ease-in-out;
}

    .product-card:hover {
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.07) !important;
    }

    .product-card img {
        border-radius: 0.75rem;
        background-color: #f8f9fa;
    }

    .product-card .card-body {
        text-align: center;
    }

    .product-card .card-title {
        font-weight: 600;
        font-size: 1.1rem;
    }

    .product-card .card-text {
        color: #0d6efd;
        font-weight: 600;
    }

.dropdown-menu-end {
    box-shadow: 0 9px 1rem rgb(0 0 0 / 11%) !important;
    border-radius: 14px;
}

.category-dropdown {
    background-color: #31BCF4;
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

    .category-dropdown:hover, .category-dropdown:focus {
        background-color: #4a636b;
        color: #fff;
    }

.category-dropdown-menu .dropdown-item.active {
    font-weight: 600;
}

.filter-badge {
    font-size: 0.9rem;
    font-weight: 500;
}

    .filter-badge .btn-close {
        font-size: 0.7rem;
        margin-left: 0.5rem;
    }

/* --- Sección Calendario --- */
.calendar-card {
    border: 0;
    border-radius: 0.75rem;
}

.calendar-header {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Contenedor del calendario */
.calendar-grid-container {
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
}

/* Estilos del calendario */
#calendar {
    font-family: 'Inter', sans-serif;
}

.fc .fc-col-header-cell {
    background-color: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    color: #888;
    padding: 0.5rem;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.fc .fc-daygrid-day {
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.fc .fc-daygrid-day-frame {
    min-height: 100px;
    padding: 0.5rem;
}

.fc .fc-daygrid-day-top {
    flex-direction: row;
    justify-content: flex-end;
}

.fc .fc-daygrid-day-number {
    padding: 0.25rem;
    font-weight: 500;
}

.fc .fc-day-other {
    background-color: #f9f9f9;
    color: #aaa;
}

.fc .fc-daygrid-event {
    margin: 2px 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none !important;
}

.event-smartec {
    background-color: #8a6fff !important;
    color: white !important;
}

.event-webinar {
    background-color: #e83e8c !important;
    color: white !important;
}

.event-certificacion {
    background-color: #ffe6c0 !important;
    color: #b97600 !important;
    border: 1px solid #ffca7b !important;
}

.offcanvas-top {
    width: 50%;
    margin: 0 auto;
    height: fit-content;
    box-shadow: 0 3px 37px #00000029;
    border-bottom: 0;
}


@media (max-width: 767.98px) {
    .fc .fc-daygrid-day-frame {
        min-height: 60px;
        font-size: 0.9rem;
        padding: 0.25rem;
    }

    .fc .fc-col-header-cell {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }

    .offcanvas-top {
        width: 100%;
    }
}



/* --- Menú Offcanvas (Móvil) --- */


.offcanvas-logo img {
    max-height: 63px;
}

.offcanvas-user-info {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

    .offcanvas-user-info .user-avatar {
        width: 40px;
        height: 40px;
    }

.offcanvas-user-icons {
    font-size: 1.3rem;
    color: #555;
}

.offcanvas .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    border: 0;
    width: 100%;
    text-align: center;
}

    .offcanvas .nav-link.active {
        background-color: #31BCF4;
        color: #fff;
        border-radius: 0.5rem;
    }

.offcanvas-footer {
    border-top: 1px solid #dee2e6;
    flex-direction: row;
    display: flex;
    text-align: center;
}

    .offcanvas-footer .nav-link {
        text-align: center;
    }

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}
