/* Dark mode styles */

body.dark-mode {
    background-color: #505661;
    color: #fff;
}
/* modo oscuro header*/

body.dark-mode header {
    background-color: #1d1c1c;
}
body.dark-mode nav {
    background-color: #1d1c1c;
}

body.dark-mode nav a {
    text-decoration: none;
    color: #f8f3f3;
    font-weight: bold;
}

body.dark-mode .profile span {
    background-color: #1d1c1c;
}

.dark-mode header img {
    content: url('/src/components/modo_oscuro/assets/+divWHITE.svg'); /* Ruta de la imagen en modo oscuro */
}

@media (max-width: 768px) {
    body.dark-mode {
        nav ul {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 50px;
            left: 0;
            background-color: #1d1c1c;
            width: 100%;
        }
    }
}

@media (max-width: 768px) {
    body.dark-mode {
        .container-info-perfil {
            display: none;
            flex-direction: column;
            position: absolute;
            top: 181px;
            left: 0;
            background-color: #1d1c1c;
            width: 100%;
            color: rgb(255, 255, 255);
            padding: 0%;
        }
    }
}

/* modo oscuro parte de el body*/
body.dark-mode .main {
    background-color: #4a4f5a;
}

body.dark-mode {
    background-color: #353b47;
}
body.dark-mode #calendar {
    background-color: #353b47;
    color: #fff;
}

body.dark-mode .burger-button,
body.dark-mode .burger-button:after,
body.dark-mode .burger-button:before {
    background-color: #1d1c1c;
    color: #eeeff7;
}

body.dark-mode label {
    color: #000000;
}

body.dark-mode p {
    color: #000000;
}

.hamburger,
.hamburger:after,
.hamburger:before {
    background: #e5e8eb;
    transition: background 0.1s ease-in-out, color 0.1s ease-in-out;
}

body.dark-mode .calendar-cell-header {
    background-color: #60cbb0;
}

body.dark-mode h1,
body.dark-mode h2 {
    color: #faefef;
}

body.dark-mode .text-dark {
    color: rgb(224 230 235) !important;
}

body.dark-mode .dropdown-toggle:after {
    color: rgb(224, 217, 217);
}

body.dark-mode footer.footer {
    background: #161515;
}

body.dark-mode .event-item {
    color: #ffffff;
}

body.dark-mode .event-item-ex {
    color: #000000;
}

body.dark-mode #event-title {
    color: #000000;
}

body.dark-mode .floating-form {
    background-color: #2b2929e7;
}

body.dark-mode h1,
body.dark-mode h2 {
    color: #ede0e0;
}

body.dark-mode .floating-form button {
    color: #1a1818;
}

body.dark-mode ul.nav-links a {
    transform: scale(1.1);
    color: #ebe1e1;
}

body.dark-mode .list-group {
    background: #bcc5d1;
}

body.dark-mode .dropdown-menu-header {
    border-bottom: 1px solid #959fab;
    font-weight: 600;
    padding: 0.75rem;
    text-align: center;
    color: beige;
    background: #343a40;
}

body.dark-mode nav ul.menu a {
    color: beige;
}

body.dark-mode {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== SWITCH ESTILO iOS (sol/luna) ===== */
.switch {
    background: #fce7a2; /* amarillo claro modo día */
    border-radius: 1000px;
    border: none;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 30px;
    padding: 0 6px;
    transition: background 0.3s ease;
}

/* bolita */
.switch::after {
    content: '';
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    transition: left 0.3s ease, right 0.3s ease;
}

/* íconos */
.switch span {
    display: flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #c89b00; /* color del sol */
    z-index: 2;
    transition: opacity 0.3s ease;
}

.switch .moon {
    opacity: 0; /* luna oculta en modo claro */
    color: #0eb7d2;
}

/* ===== MODO OSCURO ===== */
body.dark-mode .switch {
    background: #02455b; /* azul oscuro modo noche */
}

body.dark-mode .switch::after {
    left: unset;
    right: 4px; /* bolita a la derecha */
}

/* ocultar sol, mostrar luna */
body.dark-mode .switch .sun {
    opacity: 0;
}

body.dark-mode .switch .moon {
    opacity: 1;
}

/* color de las letras*/

body.dark-mode #calendar-title {
    color: rgb(222, 241, 245);
}

body.dark-mode .calendar-cell {
    border: 1px solid #0fb9db;
    background-color: #d0d0d0;
}
body.dark-mode .calendar-cell {
    color: black; /* texto negro para los días normales */
}

body.dark-mode .calendar-cell.calendar-cell-header {
    color: rgb(90, 86, 86); /* texto blanco para los encabezados de días */
}

body.dark-mode .profile span {
    color: #ffffff; /* Blanco */
}

body.dark-mode .floating-form h3 {
    font-size: 11px;
    font-weight: normal;
    color: #ece2e2;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: justify;
}

/* Día actual — Modo claro (normal) */

/* Día actual — Modo oscuro */
body.dark-mode .calendar-cell-today {
    background-color: rgba(122, 214, 206, 0.15); /* más tenue para oscuro */
    border: 2px solid rgba(122, 214, 206, 0.35);
}
