body {
    font-family:  "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
}

.modal-backdrop.show {
    --bs-backdrop-bg: rgba(0, 0, 0, 0.9);   /* color */
    --bs-backdrop-opacity: 1;               /* asegura que se aplique */
}
.login {
    background-image: linear-gradient(to right bottom, #051937, #093164, #0c4c94, #0b68c8, #0086ff);
    min-height: 100dvh;
}

table {
    font-size: 1rem;
}

.navbar-bot a {
    flex: 1;                 /* cada enlace ocupa el mismo ancho */
    display: flex;           /* permite centrar el icono */
    justify-content: center; /* centra el icono */
}

.header-user {
    height: 40px;
    border-bottom: 1px solid #dee2e6;
    background-color: #ffffff;
    z-index: 1000;
}

.navbar-bot {
    background-color: #005cb3;
    height: 40px;

}

.navbar-bot .signing {
    margin-top: -50px;
    border-radius: 50%;
    border: 5px solid #004183;
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: center;
    background-size: cover;
    flex: 0 0 auto;
}

.emoji-button {
    position: fixed;
    top: 0;
    right: 10px;
    z-index: 1000;
    width: 50px;
    height: 50px;
}

.offcanvas.offcanvas-end {
    width: 275px;
}

.fixed-bottom {
    z-index: 1000;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #005cb3;
}

.box-calendar {
}

.space-bottom {
    height: 20px;
    background-color: #005cb3;
    width: 100%;
}

.state__avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    object-position: center;
    border-radius: 99999px;
}

.state__emoji {
    position: absolute;
    bottom: 0;
    right: -5px;
    width: 25px;
}

.state__status {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: #afafaf;
    position: absolute;
    bottom: 0;
    left: 5px;
}

.state__status--online {
    background-color: #44b100;
}

.state__status--offline {
    background-color: #f34e4e;
}

.radio-image {
    display: inline-block;
}

.radio-image input {
    display: none; /* Oculta el radio */
}

.radio-image img {
    width: 36px;
    border: 3px solid transparent;
    border-radius: 10px;
    cursor: pointer;
}

/* Cuando el radio está seleccionado */
.radio-image input:checked + img {
    border-color: #0024ff;
    border-radius: 50%;
}


#map {
    height: 300px;
    width: 100%;
    border-radius: 0.375rem;
    margin-top: 1rem;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 20px;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}
.calendar-day:hover {
    background-color: #e9ecef;
    transform: scale(1.05);
}
.calendar-day.selected {
    background-color: #0d6efd;
    color: white;
    font-weight: bold;
}
.calendar-day.today {
    border: 2px solid #0d6efd;
}
.calendar-day.other-month {
    color: #adb5bd;
}
.calendar-header {
    font-weight: bold;
    text-align: center;
    padding: 10px;
}
.calendar-weekday {
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

/* ========================================
   SIDEBAR ADMIN STYLES
   ======================================== */

:root {
    --sidebar-width: 250px;
    --sidebar-bg: #2c3e50;
    --sidebar-hover: #34495e;
    --sidebar-active: #3498db;
    --sidebar-text: #ecf0f1;
}

/* Sidebar Styles */
.sidebar-admin {

    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-brand {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sidebar-text);
}

.sidebar-toggle {
    padding: 0;
    color: var(--sidebar-text);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.sidebar-nav .nav {
    padding: 0;
}

.sidebar-nav .nav-item {
    margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link {
    color: var(--sidebar-text);
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;


}

.sidebar-nav .nav-link:hover {
    background-color: var(--sidebar-hover);
    border-left-color: var(--sidebar-active);
}

.sidebar-nav .nav-link.active {
    background-color: var(--sidebar-active);
    border-left-color: #fff;
}

.sidebar-nav .nav-link i {
    font-size: 1.25rem;
    width: 2rem;
    margin-right: 0.75rem;
}

.sidebar-nav .nav-link span {
    font-size: 0.8rem;
}

/* Dropdown toggle */
.sidebar-nav .nav-link.dropdown-toggle {
    position: relative;
}

/* Quitar la flecha por defecto de Bootstrap */
.sidebar-nav .nav-link.dropdown-toggle::after {
    display: none;
}

/* Submenu styles */
.sidebar-nav .submenu {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

.sidebar-nav .submenu .nav-item {
    margin-bottom: 0;
}

.sidebar-nav .submenu .nav-link {
    padding: 0.75rem 1.5rem 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.sidebar-nav .submenu .nav-link i {
    font-size: 1rem;
    width: 1.5rem;
    margin-right: 0.75rem;
}

.sidebar-nav .submenu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--sidebar-active);
}

.sidebar-nav .submenu .nav-link.active {
    background-color: rgba(52, 152, 219, 0.3);
    border-left-color: #fff;
}

/* Badge styles */
.sidebar-nav .nav-link .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 0 !important;
}

/* Mobile Toggle Button */
.sidebar-mobile-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 999;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .sidebar-admin {
        transform: translateX(-100%);
    }

    .sidebar-admin.active {
        transform: translateX(0);
    }

    /* Adjust main content on mobile */
    body.sidebar-open {
        overflow: hidden;
    }
}

/* Desktop - push content to the right */
@media (min-width: 992px) {
    .sidebar-mobile-toggle {
        display: none;
    }

    /* Add padding to body to account for sidebar - only when sidebar is present */
    body.has-sidebar {
        margin-left: var(--sidebar-width);
    }
}

/* Scrollbar for sidebar */
.sidebar-admin::-webkit-scrollbar {
    width: 6px;
}

.sidebar-admin::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-admin::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar-admin::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.row-signing {
    background-color: rgb(226, 241, 255);
    border: 1px solid rgb(185, 220, 255);
}

/* ========================================
   ADMIN PAGES GENERAL STYLES
   ======================================== */

/* Admin pages background */

/* ========================================
   FORM STYLES
   ======================================== */

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

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* ========================================
   STATS / EXPORT CALENDAR STYLES
   ======================================== */

.year-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.month-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 15px;
    background-color: #fff;
    transition: all 0.3s;
}

.month-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.month-card.current-month {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}

.month-header {
    font-weight: bold;
    font-size: 1.2rem;
    color: #212529;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.month-card.current-month .month-header {
    color: #0d6efd;
}

.month-stats {
    text-align: center;
    padding: 20px 0;
}

.hours-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0d6efd;
    line-height: 1;
}

.hours-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

.year-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.year-navigation h2 {
    margin: 0;
    font-size: 2rem;
}

.download-btn {
    margin-top: 15px;
}

.user-selector {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .year-calendar {
        grid-template-columns: 1fr;
    }
}
