@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;

}

body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;

    background-color: #F7F3E3;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image: url("imgs/background.png");
    background-repeat:initial;


    opacity: 0.15;

    z-index: -1;
}

#forgotPassword{
        font-size: .8rem;
        margin-top: .5rem;
}
#forgotPassword:hover {
    color: #2a2a2f;
}

a{
    color: #191923;
    transition: .2s ease;
}

a:hover{
    color: #FCB55F;
}


button, button a {
    color: #191923;
    -webkit-text-fill-color: #191923;
    -webkit-appearance: none;
    appearance: none;
}


header{
    box-sizing: border-box;
    width: 90%;
    position: fixed;
    z-index: 1000;
    height: auto;
    padding: .8rem 2rem;

    top: 1rem;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    background-color: #FCB55F;

    font-size: .5rem;
    color: #191923;

    box-shadow: 5px 5px 0 #191923;
    border: 2px solid #191923;
}

header .main, header .buttons{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

header .main img, header .buttons img{
    width: 1.5rem;
    height: 1.5rem;
}

header .main h1{
    font-weight: 700;
}

header .timer-icon{
    width: 1.5rem;
    height: 1.5rem;
}

header .timer-header{
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: .5rem;
}



.sidebar{
    height: 80vh;
    width: fit-content;
    position: fixed;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap:1rem;

    
    z-index: 999;

    top: 65%;
    left: 1rem;

    padding: 4rem 1rem 1rem 1rem;

    

    background-color: #FCB55F;
    border: 2px solid #191923;

    box-shadow: 5px 5px 0 #191923;

    


    transform: translate(0, -65%);
    transition: transform .3s ease;
}

.sidebar .item{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;


    width: 10rem;
    padding: .5rem 1.5rem;


    background-color: #F7F3E3;
    box-shadow: 5px 5px 0 #191923;

    transition: .2s ease;
}

.sidebar .item img{
    width: 1.5rem;
    height: 1.5rem;
}

.sidebar .item:hover{
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #191923;

}

.sidebar .item a{
    font-size: .8rem;
    font-style: none;
    text-decoration: none;
    font-weight: 600;
    color: #191923;
}


#sidebar.hide{
    transform: translate(-150%, -60%);
    box-shadow: 5px 5px 0 #191923;
}





#dashboardd{
    background-color: transparent;
    border: transparent;
    box-sizing: border-box;
}


.tasks-main,
.marks-main,
.subjects-main,
.horario-section{
    transition: margin-left .3s ease, padding-left .3s ease;
}

.seccion-vistas-agenda{
    transition: padding-left .3s ease;
}

.dashboard{
    transition: margin-left .3s ease;
}

/* ==============================
   MODALES
   ============================== */

.modal {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 1rem;
    box-sizing: border-box;

    background-color: rgba(25, 25, 35, 0.45);

    z-index: 2000;

    overflow-y: auto;
}

.modal.show {
    display: flex;
}















/* ==============================
   FORMULARIOS DE MODAL------------------------------------------------------------
   ============================== */

.event-form,
.calendar-form,
.task-form,
.schedule-form,
.subject-form {
    width: min(90%, 650px);
    max-height: 90vh;

    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 2rem;

    box-sizing: border-box;

    background-color: #fff;

    border: 2px solid #191923;
    box-shadow: 8px 8px 0 #191923;

    overflow-y: auto;
    overflow-x: hidden;
}



.event-form h2,
.calendar-form h2,
.task-form h2,
.schedule-form h2,
.subject-form h2 {
    margin: 0;

    font-size: 1.5rem;
    font-weight: 700;

    color: #191923;
}

.event-form .form-group,
.calendar-form .form-group,
.task-form .form-group,
.schedule-form .form-group,
.subject-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.event-form .form-group label,
.calendar-form .form-group label,
.task-form .form-group label,
.schedule-form .form-group label,
.subject-form .form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #191923;
}


.event-form input,
.event-form select,
.event-form textarea,

.calendar-form input,
.calendar-form select,
.calendar-form textarea,

.task-form input,
.task-form select,
.task-form textarea,

.schedule-form input,
.schedule-form select,
.schedule-form textarea,

.subject-form input,
.subject-form select,
.subject-form textarea {
    width: 100%;
    min-height: 2.5rem;

    padding: 0.5rem 1rem;

    box-sizing: border-box;

    font-family: Montserrat, sans-serif;
    font-size: 0.8rem;

    color: #191923;

    background-color: #F7F3E3;

    border: 2px solid #191923;
    border-radius: 12px;

    outline: none;

    transition: 0.2s ease;
}


.event-form textarea,
.calendar-form textarea,
.task-form textarea,
.schedule-form textarea,
.subject-form textarea {
    min-height: 5rem;
    resize: none;
}


.event-form input:focus,
.event-form select:focus,
.event-form textarea:focus,

.calendar-form input:focus,
.calendar-form select:focus,
.calendar-form textarea:focus,

.task-form input:focus,
.task-form select:focus,
.task-form textarea:focus,

.schedule-form input:focus,
.schedule-form select:focus,
.schedule-form textarea:focus,

.subject-form input:focus,
.subject-form select:focus,
.subject-form textarea:focus {
    outline: none;

    border-color: #191923;

    box-shadow: 5px 5px 0 #FCB55F;

    background-color: #F7F3E3;
}




/* ==============================
   BOTONES DE FORMULARIOS
   ============================== */

.form-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 1rem;

    margin-top: 0.5rem;
}

.form-buttons button {
    padding: 0.5rem 1rem;

    font-family: Montserrat, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;

    color: #191923;

    background-color: #FCB55F;

    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    cursor: pointer;

    transition: 0.2s ease;
}

.form-buttons button:hover {
    transform: translateY(-4px);
    box-shadow: 7px 7px 0 #191923;
}








/* ==============================
   FORMULARIO DE EVENTOS--------------------------------------------
   ============================== */

.event-basic-info,
.event-dates,
.event-times {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section h3 {
    margin: 0;
    padding-bottom: 0.5rem;

    font-size: 0.9rem;
    font-weight: 700;

    color: #191923;

    border-bottom: 2px solid #191923;
}

.advanced-options {
    border: 2px solid #191923;
    background-color: #F7F3E3;
}

.advanced-options-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0.75rem 1rem;

    font-family: Montserrat, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;

    color: #191923;

    background: transparent;

    border: none;
    box-shadow: none;

    cursor: pointer;
}

.advanced-options-button:hover {
    transform: none;
    box-shadow: none;
}

.advanced-arrow {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.advanced-options-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 1rem;

    border-top: 2px solid #191923;
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;

    gap: 0.5rem;

    font-size: 0.8rem;
    font-weight: 500;

    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1.1rem;
    min-width: 1.1rem;
    height: 1.1rem;
    min-height: 1.1rem;

    margin: 0;
    padding: 0;

    flex-shrink: 0;

    appearance: none;

    background-color: #fff;

    border: 2px solid #191923;
    border-radius: 0;

    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: #60A561;
    box-shadow: inset 0 0 0 3px #fff;
}

.repeat-days {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.repeat-days label {
    display: flex;
    align-items: center;

    gap: 0.5rem;

    font-size: 0.75rem;
    font-weight: 500;

    cursor: pointer;
}

.repeat-days input[type="checkbox"] {
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
    min-height: 1rem;

    margin: 0;
    padding: 0;

    appearance: none;

    background-color: #fff;

    border: 2px solid #191923;
    border-radius: 0;

    cursor: pointer;
}

.repeat-days input[type="checkbox"]:checked {
    background-color: #60A561;
    box-shadow: inset 0 0 0 2px #fff;
}

.event-repeat-options p {
    margin: 0 0 0.5rem;

    font-size: 0.75rem;
    font-weight: 600;
}


/*CALENDARIO*/-------------------------------------------------



.seccion-vistas-agenda{
    width: calc(100% - 4rem);
    height: 90%;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;

    align-items: start;

    gap: 2rem;

    margin: 0 auto;

    padding-left: 200px;
}


.calendars-panel{

    width: 200px;
    min-width: 200px;
    min-height: 10rem;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    gap: .8rem;

    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    padding: 1rem;

    margin-top: 8rem;
}


.calendars-header{
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
}

.calendars-header h4{
    font-size: .9rem;
}


.calendars-header button{
    background-color: #F7F3E3;
    border: 2px solid #191923;
    box-shadow: 2px 2px 0 #191923;

    padding: 0 .2rem;

    font-weight: 700;
    font-size: 1.2rem;

    transition: .2s ease;
}

.calendars-header button:hover{
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 #191923;
}


.calendar-item{
    width: 100%;

    display: flex;
    align-items: center;


    padding: .5rem .6rem;

    background-color: #F7F3E3;

    border: 2px solid #191923;
    box-shadow: 2px 2px 0 #191923;

    font-size: .8rem;
    font-weight: 600;

    transition: .2s ease;
}

.calendar-item:hover{
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 #191923;
}


.calendar-label{
    display: flex;
    align-items: center;
    gap: .6rem;

    flex: 1;
    min-width: 0;
}


.calendar-item input[type="checkbox"]{
    appearance: none;

    width: 1.1rem;
    height: 1.1rem;

    flex-shrink: 0;

    background-color: #fff;

    border: 2px solid #191923;

    cursor: pointer;

    position: relative;

    transition: .2s ease;
}

.calendar-item input[type="checkbox"]:checked{
    background-color: #FCB55F;
}

.calendar-item input[type="checkbox"]:checked::after{
    content: "✓";

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    font-size: .75rem;
    font-weight: 800;

    color: #191923;
}

.calendar-item .calendar-label .calendar-checkbox input[type="checkbox"]:hover{
    transform: scale(1.08);
}

.delete-calendar{

    width: 1.2rem;
    height: 1.2rem;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    padding: 0 .2rem;
    line-height: 1;

    cursor: pointer;

    background-color: transparent;
    border: transparent;

    transition: .2s ease;
}

.delete-calendar:hover{
    font-weight: 900;
    transform: scale(1.15);
}


#calendarList{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;

    width: 100%;
}




.eventos{
    width: 100%;
    min-width: 0;
    height: fit-content;
    margin: 6rem auto 0;

    display: flex;
    flex-direction: column;
    justify-content:space-around;
    gap: 1.2rem;
    
    padding: 1rem 1.5rem;

    background-color: white;
    border: 2px solid #191923;
}

.eventos .title{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.eventos .title h2{
    font-size: 2rem;
    color: #191923;
}



#addEvent{
    background-color: #FCB55F;
    padding: .5rem 1rem;
    box-shadow: 5px 5px 0 #191923;
    font-weight: 600;
    cursor: pointer;

    border: 2px solid #191923;

    transition: .2s ease;
}

#addEvent:hover{
    transform: translateY(-4px);
    box-shadow: 7px 7px 0 #191923;
}






.form-error{

    width: fit-content;

    padding: .4rem .7rem;

    background-color: #FCB55F;
    color: #191923;

    border: 2px solid #191923;
    box-shadow: 4px 4px 0 #191923;

    font-size: .7rem;
    font-weight: 600;

    opacity: 0;
    transform: translateY(-5px);
    visibility: hidden;

    transition: .2s ease;
}

.form-error.show{
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}



.eventos .title .buttons{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-selector{
    position: relative;
}

#viewBtn{
    display: flex;
    align-items: center;
    gap: .5rem;

    padding: .5rem 1rem;

    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    font-weight: 600;
    cursor: pointer;

    transition: .2s ease;
}

#viewBtn:hover{
    transform: translateY(-5px);
    box-shadow: 7px 7px 0 #191923;
}

.view-menu{
    position: absolute;

    top: calc(100% + .8rem);
    right: 0;

    display: flex;
    flex-direction: column;
    gap: .5rem;

    min-width: 6rem;

    padding: .8rem;

    background-color: #F7F3E3;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);

    z-index: 1000;

    transition: .2s ease;
}

.view-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.view-menu button, #todayBtn{
    background-color: #FCB55F;
    padding: .5rem .8rem;
    box-shadow: 2px 2px 0 #191923;
    font-weight: 600;
    cursor: pointer;

    border: 2px solid #191923;

    font-size: .7rem;

    transition: .2s ease;
}

.view-menu button:hover, #todayBtn:hover{
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 #191923;
}







.seccion-vistas-agenda{
    width: calc(100% - 4rem);
    height: 90%;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;

    align-items: start;

    gap: 2rem;

    margin: 0 auto;

    padding-left: 200px;
}




.calendar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: fit-content;

    box-sizing: border-box;
    overflow: hidden;


    border: 2px solid #191923;
    background-color: #F7F3E3;
    box-shadow: 6px 6px 0 #191923;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: .8rem;

    background-color: #FCB55F;
    border-bottom: 2px solid #191923;
}

.calendar-header h2 {
    font-size: 1.2rem;
}

.calendar-header button {
    width: 2rem;
    height: 2rem;

    background-color: #F7F3E3;

    border: 2px solid #191923;
    box-shadow: 4px 4px 0 #191923;

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}

.calendar-header button:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 #191923;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));

    border-bottom: 2px solid #191923;
}

.calendar-weekdays span {
    padding: .5rem;

    text-align: center;

    font-size: .7rem;
    font-weight: 700;

    border-right: 2px solid #191923;
}

.calendar-weekdays span:last-child {
    border-right: none;
}

.calendar-days {
    position: relative;

    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: 8rem;
}




.calendar-day {

    position: relative;
    overflow: hidden;
    height: 8rem;
    min-height: 0;

    padding: .7rem;

    border-right: 2px solid #191923;
    border-bottom: 2px solid #191923;

    background-color: #F7F3E3;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: .4rem;

    transition: .2s ease;
}

.calendar-day:hover {
    background-color: #fff;
}


.calendar-day.today > span {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 1.8rem;
    height: 1.8rem;

    background-color: #FCB55F;

    border: 2px solid #191923;
    box-shadow: 2px 2px 0 #191923;

    font-weight: 700;
    font-size: .8rem;
}

.more-events {
    font-size: .6rem;
    font-weight: 800;
    color: #191923;
}

.calendar-event{
    width: 100%;
    min-width: 0;
    padding: .15rem .35rem;

    border: 1px solid #191923;

    font-size: .6rem;
    font-weight: 600;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    cursor: pointer;

    transition: .15s ease;
}


.calendar-event:hover{
    filter: brightness(85%);
}

.day-events {
    position: absolute;

    left: .7rem;
    right: .7rem;

    display: flex;
    flex-direction: column;
    gap: .15rem;

    z-index: 3;
}

.calendar-events-layer {
    position: absolute;
    inset: 0;

    pointer-events: none;

    z-index: 2;
}

.calendar-events-layer .calendar-event {
    pointer-events: auto;
}



.day-view .calendar-event{
    width: 85%;

    padding: 1rem 2rem;
    font-size: .8rem;

    margin: 0 auto;
}








.event-info-modal{
    width: 100%;
    height: 100%;

    position: fixed;
    inset: 0;
    z-index: 3000;

    display: none;
    align-items: center;
    justify-content: center;

    background-color: rgba(25, 25, 35, 0.25);
}

.event-info-modal.show {
    display: flex;
}

.event-info{
    width: 40%;
    min-width: 400px;

    padding: 1.5rem 2rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;

    background-color: #F7F3E3;

    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;
}

.event-info .info-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.info-header h2{
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.info-header button, #editEvent, #deleteEvent{
    display: flex;
    align-items: center;
    gap: .5rem;

    padding: .5rem 1rem;

    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    font-weight: 600;
    cursor: pointer;

    transition: .2s ease;
}

.info-header button:hover, #editEvent:hover, #deleteEvent:hover{
    transform: translateY(-5px);
    box-shadow: 7px 7px 0 #191923;
}
.event-info .info-row{
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}

.event-info .info-row strong{
    white-space: nowrap;
}


.info-buttons{
    display: flex;
    align-items: center;
    gap: 1rem;
}

#editEvent, #deleteEvent{
    width: fit-content;
}














.day-view .calendar-weekdays{
    display: none;
}

.day-view .calendar-days {
    display: block;
}

.day-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;

    padding: 1rem 2rem;
}

.day-header strong {
    font-size: 2rem;
    text-transform: capitalize;
}

.day-header span {
    font-size: 3rem;
    font-weight: bold;
}

.day-view .calendar-day {
    min-height: 30rem;

    border-right: none;

    padding-bottom: 2rem;

    gap: 1rem;
    background-color: #F7F3E3;
}


.calendar.day-view .calendar-event {
    width: 85%;

    padding: 1rem 1.5rem;

    border: 2px solid #191923;
    box-shadow: 4px 4px 0 #191923;

    font-size: .8rem;
    font-weight: 700;

    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: .15s ease;
}

.calendar.day-view .calendar-event:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0 #191923;
}














/* =========================
   MODAL CREAR CALENDARIO
========================= */



.calendar-form > p:not(.form-error) {
    font-size: .8rem;
    font-weight: 500;
    color: #191923;
    line-height: 1.5;
}



.calendar-form input::placeholder {
    color: #191923;
    opacity: .6;
}


.event-form,
.calendar-form {
    background-color: #fff;

    border: 2px solid #191923;
    box-shadow: 8px 8px 0 #191923;
}







#addCalendar{
    cursor: pointer;
}











.tasks-main{
    width: auto;

    margin: 6rem 2rem 2rem 16rem;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
    
    padding: 1rem 2rem;

    background-color: white;
    border: 2px solid #191923;


    
}

.tasks-header{
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 2rem;
    padding-top: 1rem;
    border-bottom: 2px solid #191923;
}

.tasks-header h1{
    margin: 0;
    font-size: 2.2rem;
}

.new-task{

    display: flex;
    align-items: center;
    justify-content: center;

    padding: .8rem 1.5rem;
    background-color: #FCB55F;

    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}

.new-task:hover{
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 #191923;
}

.tasks-recount{
    width: 100%;
    min-height: 110px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 1.5rem;

    padding-top: 1rem;
}

.tasks-recount-div{
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 1rem;

    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    padding: 1rem 2rem;

    box-sizing: border-box;

    transition: .2s ease;
}
.tasks-recount-div:hover{

    transform: translateY(-4px);
    box-shadow: 10px 10px 0 #191923;
}



.tasks-recount-div h3,
.tasks-recount-div p {
    margin: 0;
}

.tasks-recount-div p {
    font-size: 2rem;
    font-weight: 800;
}



.tasks-tomorrow{
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    gap: 2rem;
}

.tasks-tomorrow h2{
    font-size: 1.8rem;
    margin: 0;
}

.tomorrow-list{
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 1rem;
}



.tasks-state{
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 2rem;
}

.tasks-state h2{
    margin: 0;
    font-size: 1.8rem;

}

.state-display{
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 1.5rem;
}

.state-div{
    min-height: 200px;

    display: flex;
    flex-direction: column;

    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

}



.state-header{
    padding: 1rem 1.25rem;


}

.state-header h3{
    margin: 0;
}

.state-list {
    flex: 1;

    padding: 1rem;

    display: flex;
    flex-direction: column;

    gap: 1rem;
}











.task-card {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1rem 1.5rem;

    box-sizing: border-box;

    border: 2px solid #191923;
    box-shadow: 4px 4px 0 #191923;

    cursor: pointer;

    transition: .2s ease;
}

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 #191923;
}

.task-card h3 {
    margin: 0;

    font-size: 1.05rem;
}


.task-main {
    flex: 1;
    min-width: 0;
}


.task-main h3 {
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}


.task-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.task-date {
    font-size: .9rem;
    font-weight: 600;
}

.tasks-pending h2{
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.pending-all-list{
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 1rem;
}







.task-info-modal{
    width: 100%;
    height: 100%;

    position: fixed;
    inset: 0;
    z-index: 3000;

    display: none;
    align-items: center;
    justify-content: center;

    background-color: rgba(25, 25, 35, 0.25);
}

.task-info-modal.show{
    display: flex;
}

.task-info{
    width: 40%;
    min-width: 400px;

    padding: 1.5rem 2rem;

    display: flex;
    flex-direction: column;
    gap: 1rem;

    background-color: #F7F3E3;

    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;
}

.task-info .info-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.task-info .info-header h2{
    font-size: 1.5rem;
    margin: 0;
}

.task-info .info-header button,
#editTask,
#deleteTask{
    display: flex;
    align-items: center;

    padding: .5rem 1rem;

    background-color: #FCB55F;

    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    font-weight: 600;
    cursor: pointer;

    transition: .2s ease;
}

.task-info .info-header button:hover,
#editTask:hover,
#deleteTask:hover{
    transform: translateY(-5px);
    box-shadow: 7px 7px 0 #191923;
}

.task-info .info-row{
    font-size: .8rem;

    display: flex;
    align-items: flex-start;

    gap: .5rem;
}

.task-info .info-row strong{
    white-space: nowrap;
}

.task-info .info-buttons{
    display: flex;
    align-items: center;
    gap: 1rem;

    margin-top: .5rem;
}



.task-card {
    position: relative;
    z-index: 1;
}

.task-card:has(.task-status-menu) {
    z-index: 100;
}

.tasks-actions{
    display: flex;
    align-items: center;
    gap: .5rem;
}

.task-status-button{
background-color: transparent;
border: transparent;

cursor: pointer;
}

.task-status-menu{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: .8rem;

    padding: .5rem .8rem;

    background-color: #F7F3E3;
    border: 2px solid #191923;
    box-shadow: 2px 2px 0 #191923;

    position: absolute;
    top: calc(100% + 1rem);
    right: 0;

    z-index: 5000;

    transition: .2s ease;
}

.task-status-menu button{
    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 2px 2px 0 #191923;

    padding: .2rem .3rem;

    font-size: .8rem;
    font-weight: 600;

    transition: .2s ease;
}

.task-status-menu button:hover{
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 #191923;
}







.marks-main{
    width: auto;

    margin: 6rem 2rem 2rem 16rem;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
    
    padding: 1rem 2rem;

    background-color: white;
    border: 2px solid #191923;
}

.new-mark{
    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    padding: .5rem 1rem;

    font-weight: 700;
    font-size: 1.2rem;

    transition: .2s ease;
}

.new-mark:hover{
    transform: translateY(-2px);
    box-shadow: 10px 10px 0 #191923;
}
















.subjects-main {
    width: auto;
    height: fit-content;

    margin: 6rem 2rem 2rem 16rem;

    display: flex;
    flex-direction: column;
    gap: 2rem;

    padding: 1rem 2rem;
    background-color: white;
    border: 2px solid #191923;
}


.subjects-header {

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1rem 0 2rem;

    border-bottom: 2px solid #191923;
}


.subjects-header h1 {

    margin: 0;

    font-size: 2.2rem;

}


.subjects-header button {

    padding: .8rem 1.5rem;

    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;
    transition: .2s ease;
}


.subjects-header button:hover {

    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #191923;

}


.subjects-feed {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.subjects-feed .empty-message {
    grid-column: 1 / -1;
}

.subject-card {

    min-height: 150px;

    padding: 1.5rem;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;
    cursor: pointer;

    transition: .2s ease;
}


.subject-card:hover {

    transform: translateY(-4px);

    box-shadow: 8px 8px 0 #191923;

}


.subject-card h2 {
    margin: 0;

}

/* MODAL NUEVA ASIGNATURA */

#subjectModal {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    background-color: rgba(25, 25, 35, 0.45);

    z-index: 2000;
}

#subjectModal.show {
    display: flex;
}


.subject-form {
    width: min(90%, 500px);

    display: flex;
    flex-direction: column;
    gap: 1.2rem;

    padding: 2rem;

    background-color: #fff;

    border: 2px solid #191923;
    box-shadow: 8px 8px 0 #191923;
}




.subject-form input[type="text"] {
    width: 100%;

    padding: .7rem 1rem;

    font-family: "Montserrat", sans-serif;
    font-size: .85rem;

    background-color: #F7F3E3;

    border: 2px solid #191923;
    border-radius: 10px;

    outline: none;

    transition: .2s ease;
}


.subject-form input[type="text"]:focus {
    box-shadow: 5px 5px 0 #FCB55F;
}


.subject-color-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: .5rem 1rem;

    background-color: #F7F3E3;

    border: 2px solid #191923;
    border-radius: 10px;
}


.subject-color-container label {
    font-size: 1rem;
    font-weight: 700;
}


#subjectColor {
    width: 3rem;
    height: 2rem;

    padding: 0;

    border: 2px solid #191923;

    background-color: transparent;

    cursor: pointer;
}




.subject-page{
    display: none;

    width: 95%;
    height: 90%;

    background-color: #F7F3E3;
    border-radius: 12px;

    box-sizing: border-box;
    padding: 2rem 2.5rem;

    overflow-y: auto;
}



.subject-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subject-title{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subject-title h2{
    font-size: 1.8rem;
    margin: 0;
}




#editSubjectName {
    width: 34px;
    height: 34px;

    border: none;

    background: #f1f1f1;
    color: #333;
    box-shadow: 2px 2px 0 #191923;
    border: 1px solid #191923;

    font-size: 16px;

    cursor: pointer;

    transition: 0.2s ease;
}

#editSubjectName:hover {
    background: #FCB55F;

    transform: translateY(-2px);
    box-shadow: 4px 4px 0 #191923;
}


.subject-name-input {
    width: 300px;

    padding: 8px 12px;

    border: 1px solid #ccc;
    border-radius: 8px;

    background: white;
    color: #222;

    font-size: 24px;
    font-weight: 600;

    outline: none;
}

.subject-name-input:focus {
    border-color: #999;
}





.subject-header-buttons{
    display: flex;
    align-items: center;
    gap: 1rem;
}
.subject-header-buttons button{
    padding: .5rem 1.2rem;

    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;
    transition: .2s ease;
}

.subject-header-buttons button:hover{
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #191923;
}


.subject-name-input {
    font-size: 1.5rem;
    font-weight: 600;
    border: none;
    outline: none;
    background: transparent;
    padding: 5px 0;
    width: 250px;
}

#editSubjectName {
    cursor: pointer;
}

#deleteSubject {
    cursor: pointer;
}



.subject-info{
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.subject-info h2{
    margin: 0 0 1.5rem;
    font-size: 1rem;
}

.subject-info-list{
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.subject-info-item{
    display: grid;
    grid-template-columns: 140px 1fr 40px;
    align-items: center;

    min-height: 2rem;
    padding: .2rem 1.5rem .2rem 0;

    border-radius: 12px;
}

.subject-info-item:hover {
    background: #f7f7f7;
}

.subject-info-label{
    font-size: .8rem;
    font-weight: 700;
    color: #333;
}

.subject-info-value {
    font-size: .8rem;
}



.edit-field {
    width: 32px;
    height: 32px;

    border: none;
    background: transparent;
    border-radius: 8px;

    cursor: pointer;

    opacity: 0;
}

.subject-info-item:hover .edit-field {
    opacity: 1;
}

.edit-field:hover {
    background: #e9e9e9;
}

.inline-edit{
    width: 100%;

    padding: .40rem .5rem;

    border: none;
    border-bottom: 2px solid #191923;

    background: transparent;

    font-family: "Montserrat", sans-serif;
    font-size: .8rem;

    outline: none;
    resize: none;
}

.inline-edit:focus {
    border-bottom-color: #FCB55F;
}









.inline-edit[type="file"] {
    width: 100%;
    padding: .35rem;

    background-color: #fff;
    border: 2px solid #191923;
    border-radius: 10px;

    font-family: "Montserrat", sans-serif;
    font-size: .75rem;

    cursor: pointer;
    box-sizing: border-box;
}

.inline-edit[type="file"]::file-selector-button {
    padding: .5rem .8rem;
    margin-right: .8rem;

    background-color: #FCB55F;
    color: #191923;

    border: 2px solid #191923;
    border-radius: 7px;

    font-family: "Montserrat", sans-serif;
    font-weight: 700;

    cursor: pointer;
}

.background-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-background {
    padding: 7px 12px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

.background-controls input[type="file"] {
    width: auto;
}




.inline-edit[type="color"] {
    width: 42px;
    height: 32px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 7px;
    cursor: pointer;
    background: none;
}

.color-preview {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
}














.subject-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 35px;
}

.subject-section {
    width: 100%;
}

.subject-section-header h2 {
    margin: 0 0 15px 0;
}

.subject-events,
.subject-tasks,
.subject-marks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}





/* =========================
   TARJETAS DE EVENTOS
========================= */

.subject-event-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    padding: 15px 18px;

    background-color: #fff;

    border: 2px solid #191923;
    box-shadow: 4px 4px 0 #191923;

    cursor: pointer;

    transition: .2s ease;
}

.subject-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 #191923;
}

.subject-event-card > div {
    min-width: 0;
}

.subject-event-card h3 {
    margin: 0 0 5px 0;

    font-size: 1rem;
    font-weight: 700;
}

.subject-event-card span {
    font-size: .75rem;
    font-weight: 600;
    color: #666;
}

.subject-event-card > span {
    flex-shrink: 0;

    padding: .35rem .6rem;

    background-color: #FCB55F;

    border: 2px solid #191923;

    color: #191923;
    font-size: .7rem;
    font-weight: 700;
}


/* =========================
   TARJETAS DE TAREAS
========================= */

.subject-task-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    padding: 15px 18px;

    background-color: #fff;

    border: 2px solid #191923;
    box-shadow: 4px 4px 0 #191923;

    cursor: pointer;

    transition: .2s ease;
}

.subject-task-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 #191923;
}

.subject-task-card > div {
    min-width: 0;
}

.subject-task-card h3 {
    margin: 0 0 5px 0;

    font-size: 1rem;
    font-weight: 700;
}

.subject-task-card span {
    font-size: .75rem;
    font-weight: 600;
    color: #666;
}

.subject-task-card > span {
    flex-shrink: 0;

    padding: .35rem .6rem;

    background-color: #FCB55F;

    border: 2px solid #191923;

    color: #191923;
    font-size: .7rem;
    font-weight: 700;
}


/* =========================
   TARJETAS DE CALIFICACIONES
========================= */

.subject-mark-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    padding: 15px 18px;

    background-color: #fff;

    border: 2px solid #191923;
    box-shadow: 4px 4px 0 #191923;

    cursor: pointer;

    transition: .2s ease;
}

.subject-mark-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 #191923;
}

.subject-mark-card > div {
    min-width: 0;
}

.subject-mark-card h3 {
    margin: 0 0 5px 0;

    font-size: 1rem;
    font-weight: 700;
}

.subject-mark-card span {
    font-size: .75rem;
    font-weight: 600;
    color: #666;
}

.subject-mark-card strong {
    flex-shrink: 0;

    min-width: 45px;

    padding: .4rem .6rem;

    background-color: #FCB55F;

    border: 2px solid #191923;
    box-shadow: 2px 2px 0 #191923;

    text-align: center;

    font-size: 1rem;
}


/* =========================
   MENSAJES VACÍOS
========================= */

.empty-subject-content {
    margin: 0;
    padding: 15px;

    font-size: .8rem;
    font-weight: 600;

    color: #666;
}






/* =========================================================
   CALIFICACIONES
   ========================================================= */


/* TARJETAS DE ASIGNATURAS */

.asignaturas-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.subjects-feed .empty-message,
.asignaturas-feed .empty-message {
    grid-column: 1 / -1;
}

.mark-subject-card {
    min-height: 170px;
    padding: 1.5rem;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;
    box-sizing: border-box;
    cursor: pointer;

    transition: .2s ease;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.mark-subject-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #191923;
}


.mark-subject-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}


.mark-subject-header h2 {
    margin: 0;
    font-size: 1.4rem;
}


.mark-subject-header strong {
    font-size: 2rem;
}


.mark-subject-card p {
    margin: 1rem 0 0;
    font-weight: 600;
}


/* BARRA DE PROGRESO */

.mark-progress {
    width: 100%;
    height: 12px;

    margin-top: 1rem;

    background-color: #F7F3E3;

    border: 2px solid #191923;
    box-sizing: border-box;
}


.mark-progress-fill {
    height: 100%;
    background-color: #191923;

    transition: width .3s ease;
}



/* =========================================================
   MODAL DE CALIFICACIONES DE ASIGNATURA
   ========================================================= */

#subjectMarksModal {
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: rgba(25, 25, 35, 0.35);

    align-items: center;
    justify-content: center;

    z-index: 1000;
}


#subjectMarksModal.show {
    display: flex;
}


/* VENTANA */

.subject-marks-modal {

    width: 70%;
    max-width: 900px;
    max-height: 80vh;

    padding: 2rem;

    box-sizing: border-box;

    background-color: #F7F3E3;

    border: 2px solid #191923;
    box-shadow: 8px 8px 0 #191923;

    border-radius: 12px;

    overflow-y: auto;
}


/* CABECERA */

.subject-marks-modal-header {

    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 2rem;

    padding-bottom: 1.2rem;

    border-bottom: 2px solid #191923;
}


.subject-marks-modal-header h2 {

    margin: 0;

    font-size: 2rem;

}


.subject-marks-modal-header p {

    margin: .4rem 0 0;

    font-size: 1.1rem;

    font-weight: 600;

}


/* BOTÓN CERRAR */

#closeSubjectMarks {

    width: 42px;
    height: 42px;

    border: 2px solid #191923;

    background-color: #FCB55F;

    box-shadow: 3px 3px 0 #191923;

    font-size: 1.2rem;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;

}


#closeSubjectMarks:hover {

    transform: translate(-2px, -2px);

    box-shadow: 5px 5px 0 #191923;

}


/* LISTA DE NOTAS */

.subject-marks-list {

    display: flex;

    flex-direction: column;

    gap: 1rem;

}


/* TARJETA DE NOTA */

.subject-marks-list .mark-card {

    margin: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;


    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 2px 2px 0 #191923;

    padding: .5rem 1.2rem;

    transition: .2s ease;

}


.subject-marks-list .mark-card:hover {

    transform: translateY(-4px);

    box-shadow: 5px 5px 0 #191923;

}


.subject-marks-list .mark-card span {
    display: block;
    margin-top: 0.5rem;
}


/* CUANDO NO HAY NOTAS */

.empty-marks {

    text-align: center;

    padding: 3rem 1rem;

    margin: 0;

    border: 2px dashed #191923;

}




.marks-recount-div h3{
    font-size: 1.5rem;
}

.marks-recount-div .mark-progress {
    margin-top: 1rem;
}


.marks-recount-div {
    min-width: 220px;
}






















/* DASHBOARD */


.dashboard {
    width: 90%;
    margin: 7rem auto auto 200px;
    padding: 3rem 0;
}

.welcome{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
}

.welcome2{
    display: flex;
    align-items: center;
    text-align: center;
}
.welcome1 {

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    width: 100%;

}

.welcome h2 {
    font-size: 3rem;
    margin-bottom: .5rem;
}

.welcome p {
    margin: 0;
    font-size: 1rem;
}


.cuenta-atras{

    min-width: 12rem;
    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    padding: 1.5rem 1.5rem;

    display: flex;
    align-items: center;
    justify-content: space-around;

    transition: .2s ease;
}


.cuenta-atras span{
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}
.cuenta-atras:hover{
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #191923;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}


.dashboard-card {
    background-color: #fff;
    border: 2px solid #191923;
    box-shadow: 8px 8px 0 #191923;
    padding: 1.5rem;
}


.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.dashboard-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.dashboard-card-header a {
    color: #191923;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: underline;
}


.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}


.dashboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem;

    border: 2px solid #191923;
}


.dashboard-item h4 {
    margin: 0 0 .25rem;
    font-size: .85rem;
}


.dashboard-item p {
    margin: 0;
    font-size: .7rem;
}


.dashboard-item-date {
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
}


.dashboard-empty {
    font-size: .8rem;
    margin: 0;
    opacity: .7;
}


/* RENDIMIENTO */

.performance-card {
    width: 100%;
    box-sizing: border-box;
}


.general-performance {
    margin-bottom: 2rem;
}

.general-performance p {
    margin: 0 0 .2rem;
    font-size: .8rem;
}

.general-performance strong {
    font-size: 2rem;
}


.general-performance .mark-progress {
    margin-top: .8rem;
}


.dashboard-subjects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}


.dashboard-subject {
    padding: 1rem;
    border: 2px solid #191923;
}


.dashboard-subject h4 {
    margin: 0 0 .5rem;
    font-size: .8rem;
}


.dashboard-subject p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}


@media (max-width: 900px) {

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-subjects {
        grid-template-columns: 1fr 1fr;
    }

}











.empty-message {
    min-height: 12rem;
    width: 60%;
    padding: 2rem;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    background-color: #fff;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    margin: 0 auto;
}

.empty-message p {
    margin: 0 0 .5rem;
    font-size: 1rem;
    font-weight: 700;
}

.empty-message span {
    font-size: .75rem;
    color: #191923;
}





.task-card,
.event-card,
.subject-card,
.mark-card {
    animation: aparecer 0.35s ease-out;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.task-card,
.event-card,
.subject-card,
.mark-card,
.asignatura-card{
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.task-card:hover,
.event-card:hover,
.subject-card:hover,
.mark-card:hover,
.asignatura-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 #191923;
}




.welcome #link-pdf {
    display: inline-block;
    width: fit-content;

    margin-top: .5rem;

    color: #191923;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: underline;

    transition: .2s ease;
}

.welcome #link-pdf:hover {
    color: #FCB55F;
    transform: translateY(-2px);
}



.more-tasks {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: .5rem;
}






#back{
    width: 1.5rem;
    height: 1.5rem;
}

#userIcon{
    border-radius: 50%;

    width: 2rem;
    height: 2rem;
}


.user-space{
    width: auto;
    min-height: 20rem;
    height: fit-content;

    margin: 6rem 1rem 2rem 1rem;

    background-color: transparent;

    padding: 2rem 4rem;


    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: left;
    gap: 1.5rem;
}

#userImg{
    width: 5rem;
    height: 5rem;

    object-fit: cover;

    border-radius: 50%;
    margin-bottom: .5rem;
}


.user-card{
    background-color: #f7f7f7;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: left;
    
    gap: .5rem;

    padding: 2rem 1.5rem;

    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;
}


#perfilCard{
    min-height: 20rem;
}

#userName, #userCourse{
    flex: 1;
}

#userImg {
    flex: 0 0 5rem;
}

#editarUser{
    flex: 0.5;

    width: fit-content;
    padding: .4rem 2.2rem;
    margin-top: .5rem;

    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    font-weight: 700;

    transition: .2s ease;
}

#editarUser:hover{
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #191923;
}

#editUserImage::file-selector-button {
    background-color: #FCB55F;
    color: #191923;
    border: 2px solid #191923;
    padding: .5rem .8rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    cursor: pointer;
    margin-right: .8rem;
}

.edit-hint {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}



.habit-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}


#newHabit, #logoutUser{
    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    padding: .5rem 1rem;
    font-weight: 700;

    width: fit-content;

    transition: .2s ease;
}


#newHabit:hover, #logoutUser:hover{
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #191923;
}

#habitList{
    padding-left: 1rem;
}




.login-main {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card{
background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    padding: 2rem 2.5rem;

}

#authForm{
    margin: 1.5rem 0 1.5rem 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;

    width: 100%;
}

.auth-field{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;

    width: 100%;
}

.auth-field label{
    font-size: 1rem;
    font-weight: 700;
    margin-top: .5rem;
}

.auth-field input{
    background-color: #f7f7f7;
    border: 2px solid #191923;
    box-shadow: 2px 2px 0 #191923;
    width: 100%;

    padding: .5rem .8rem;
    font-size: .8rem;
    transition: .2s ease;
}

.auth-field input:focus {
    outline: none;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;
}

.auth-form button{
    background-color: #F7F3E3;
    border: 2px solid #191923;
    box-shadow: 2px 2px 0 #191923;
    padding: .5rem .8rem;
    font-size: .8rem;
    font-weight: 700;

    transition: .2s ease;
}

.auth-form button:hover{
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 #191923;
}

.login-card button{
    background-color: #F7F3E3;
    border: 2px solid #191923;
    box-shadow: 2px 2px 0 #191923;
    padding: .5rem .8rem;
    font-size: .8rem;
    font-weight: 700;

    transition: .2s ease;
}

.login-card button:hover{
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 #191923;
}



#calendarsBtn {
    display: none;
    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 2px 2px 0 #191923;
    padding: .3rem .4rem;
    font-weight: 600;
}



/* ICONOS SVG */

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-down svg {
    width: .8rem;
    height: .8rem;
}

.icon-pencil svg {
    width: .8rem;
    height: .8rem;
    vertical-align: middle;
}

.icon-external svg {
    width: .8rem;
    height: .8rem;
    vertical-align: middle;
}



#prevMonth,
#nextMonth {
    display: flex;
    align-items: center;
    justify-content: center;
}

#prevMonth .icon svg,
#nextMonth .icon svg {
    width: .9rem;
    height: .9rem;
}

.icon-check svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: #191923;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}











/* =========================
   HORARIO
========================= */


.horario-section {
    margin: 7rem 2rem 2rem 16rem;

    background: #F7F3E3;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;
    padding: 1rem;
}


/* CABECERA */

.horario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.horario-header h1 {
    margin: 0;
}

.horario-header p {
    margin: 5px 0 0;
}


.horario-actions {
    display: flex;
    gap: 10px;
}

.horario-actions button {
    background: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;
    padding: 10px 15px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;

    transition: .2s ease;
}

.horario-actions button:hover{
    transform: translateY(-4px);
    box-shadow: 7px 7px 0 #191923;

}

/* CONTENEDOR */

.schedule-container {
    width: 100%;
    overflow-x: auto;
}


/* GRID */

#scheduleGrid {
    min-width: 850px;
}


/* CABECERA DE DÍAS */

.schedule-header {
    display: grid;
    grid-template-columns: 3rem repeat(7, 1fr);
    border-top: 2px solid #191923;
    border-left: 2px solid #191923;
}

.schedule-time-header,
.schedule-day-header {
    width: auto;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #191923;
    border-bottom: 2px solid #191923;
}

.schedule-day-header {
    font-weight: 700;
    background: #FCB55F;
}


/* CUERPO */

.schedule-body {
    display: grid;
    grid-template-columns: 3rem repeat(7, 1fr);
    border-left: 2px solid #191923;
}


/* HORAS */

.schedule-time {
    height: 2rem;
    box-sizing: border-box;


    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;

    font-size: 13px;
    font-weight: 600;

    border-right: 2px solid #191923;
    border-bottom: 2px solid #191923;
}



/* CELDAS */

.schedule-cell {
    position: relative;
    height: 2rem;
    overflow: visible;

    border-right: 2px solid #191923;
    border-bottom: 2px solid #191923;

    background: #F7F3E3;
}



/* =========================
   MODAL HORARIO
========================= */



.schedule-form .schedule-days input:focus{
    box-shadow: none;
}

.schedule-form textarea {
    min-height: 5rem;
    resize: none;
}

.schedule-form .form-row {
    display: flex;
    gap: 1rem;
}

.schedule-form .form-row .form-group {
    flex: 1;
}



.schedule-form .schedule-repeat input[type="checkbox"] {
    width: 1.1rem;
    min-height: 1.1rem;
    padding: 0;

    appearance: none;

    border: 2px solid #191923;
    border-radius: 0;

    cursor: pointer;
}


.schedule-form .schedule-repeat input[type="checkbox"]:checked::after {
    content: "✓";

    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;

    color: #191923;
    font-size: .7rem;
    font-weight: 800;
}

.schedule-form .modal-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;

    margin-top: .5rem;
}

.schedule-form .modal-buttons button {
    background-color: #FCB55F;

    padding: .5rem 1rem;

    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    font-family: "Montserrat", sans-serif;
    font-weight: 600;

    cursor: pointer;

    transition: .2s ease;
}

.schedule-form .modal-buttons button:hover {
    transform: translateY(-4px);
    box-shadow: 7px 7px 0 #191923;
}

#scheduleColor {
    width: 4rem;
    height: 2.5rem;

    padding: .2rem;

    cursor: pointer;
}



.schedule-event {
    position: absolute;
    width: 100%;

    padding: 8px;
    margin: 0;


    border-bottom: 2px solid #191923;

    font-weight: 600;
    font-size: .8rem;
    line-height: 1.2;

    overflow: hidden;

    box-sizing: border-box;

    z-index: 10;

    transition: .2s ease;

}

.schedule-event:hover{
    filter: brightness(85%);
}

.schedule-cell.current-time-cell {
    filter: brightness(85%);
}

.schedule-form .schedule-info{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}




.today-header {
    background-color: #c3853a !important;
    color: #191923;
}





/* ============================= */
/* DÍAS DEL FORMULARIO */
/* ============================= */

.schedule-days {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

/* Cada día: checkbox y texto en la misma línea */

.schedule-days label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: .5rem;
    width: 100%;
    margin: 0;
    text-align: left;
}

/* Evita que el checkbox herede estilos extraños */

.schedule-days input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #60A561;
}

/* El texto queda alineado a la izquierda */

.schedule-days span {
    text-align: left;
}



#scheduleRepeat{
    width: 1rem;
    height: 1rem;
}


#scheduleRepeat:checked::after{

    width: 1rem;
    height: 1rem;

    content: "✓";

    display: flex;
    align-items: center;
    justify-content: center;


    color: #191923;
    background-color: #60A561;
    font-size: .7rem;
    font-weight: 800;
}

#scheduleRepeat:focus{
    box-shadow: none;

}

.edit-choice-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #191923;
}

.edit-choice-buttons {
    display: flex;
    align-items: center;
    justify-content: space-around;

    margin-bottom: 2rem;
}

.edit-choice-buttons button,
#cancelEditChoice {
    width: fit-content;
    padding: .5rem .8rem;

    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    font-weight: 700;

    transition: .2s ease;
}

.edit-choice-buttons button:hover,
#cancelEditChoice:hover{
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #191923;
}





/*MODAL DE HÁBITOS*/


.habit-form {
    width: min(90%, 500px);
    max-height: 90vh;

    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 2rem;

    box-sizing: border-box;

    background-color: #fff;

    border: 2px solid #191923;
    box-shadow: 8px 8px 0 #191923;

    overflow-y: auto;
}


.habit-form h2 {
    margin: 0;

    font-size: 1.5rem;
    font-weight: 700;

    color: #191923;
}


.habit-form .form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}


.habit-form .form-group label {
    font-size: .8rem;
    font-weight: 600;
    color: #191923;
}


.habit-form input[type="text"] {
    width: 100%;
    min-height: 2.5rem;

    padding: .5rem 1rem;

    box-sizing: border-box;

    font-family: "Montserrat", sans-serif;
    font-size: .8rem;

    color: #191923;

    background-color: #F7F3E3;

    border: 2px solid #191923;
    border-radius: 12px;

    outline: none;

    transition: .2s ease;
}


.habit-form input[type="text"]:focus {
    box-shadow: 5px 5px 0 #FCB55F;
}


/* COLOR */

.habit-form input[type="color"] {
    width: 4rem;
    height: 2.5rem;

    padding: .15rem;

    background-color: #F7F3E3;

    border: 2px solid #191923;

    cursor: pointer;
}


/* DÍAS */

.habit-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .5rem;
}


.habit-days label {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 2.5rem;

    background-color: #F7F3E3;

    border: 2px solid #191923;

    font-size: .75rem;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}


.habit-days label:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 #191923;
}


.habit-days input[type="checkbox"] {
    display: none;
}


.habit-days label:has(input[type="checkbox"]:checked) {
    background-color: #60A561;
    box-shadow: 3px 3px 0 #191923;
}


/* BOTONES */

.habit-form .form-buttons {
    margin-top: .5rem;
}




.habits-list {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1rem;

    margin-bottom: 2rem;
}


.habit-card {

    min-height: 90px;
    padding: 1rem;

    display: flex;
    align-items: center;
    gap: .7rem;

    box-sizing: border-box;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;
    cursor: pointer;

    transition: .2s ease;

}


.habit-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #191923;
}



.habit-name {
    font-size: 1remrem;
    font-weight: 700;

}


.habit-check {
    width: 1.5rem;
    height: 1.5rem;

    margin-left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background-color: #F7F3E3;
    border: 2px solid #191923;

    font-size: .8rem;
    font-weight: 800;
}


.habit-card.completed {
    box-shadow: 7px 7px 0 #191923;

}


.habit-card.completed .habit-check {
    background-color: #F7F3E3;

}

.daily-review{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.daily-rating{
    display: flex;
    align-items: center;
    gap: 1rem;

}

.daily-rating button{
    background-color: transparent;
    border: none;
    box-shadow: none;

    padding: 0;
    font-size: 1.4rem;
    cursor: pointer;

    transition: .2s ease;
}

.daily-rating button.selected{
    transform: scale(1.2);
    color: #FCB55F !important;
    -webkit-text-fill-color: #FCB55F !important;
}


.daily-review textarea {

    width: 100%;
    min-height: 100px;

    padding: .7rem;

    box-sizing: border-box;

    resize:none;
    field-sizing: content;

    font-family: "Montserrat", sans-serif;
    font-size: .8rem;

    color: #191923;

    background-color: #F7F3E3;

    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    outline: none;

}



#saveDailyReview{
width: fit-content;
    padding: .5rem .8rem;

    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    font-weight: 700;

    transition: .2s ease;
}

#saveDailyReview:hover{
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #191923;
}



#addHabit{
    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    padding: .5rem .8rem;
    font-weight: 700;

    transition: .2s ease;
}


#addHabit:hover{
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 #191923;
}



.habit-stats {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;

    margin-top: 1rem;
}


.habit-stat {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}


.habit-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}


.habit-stat-header span {
    font-size: .8rem;
    font-weight: 700;
}


.habit-stat-header strong {
    font-size: .8rem;
}


.habit-stat-progress {
    width: 100%;
    height: 1rem;

    background-color: #F7F3E3;
    border: 2px solid #191923;
}


.habit-stat-progress-fill {
    height: 100%;

    transition: width .3s ease;
}


.habit-stat-count {
    font-size: .65rem;
    font-weight: 600;
}



.habit-streak{
    margin-top: 1rem;
}


.habits-chart {
    width: 100%;
    height: 300px;
    margin-top: 1rem;
}



.habits-today-progress{
    margin-top: 1.5rem;
}

.habit-edit {

    margin-left: auto;
    padding: .3rem;
    background-color: transparent;
    border: none;
    box-shadow: none;

    font-size: .9rem;
    cursor: pointer;

    transition: .2s ease;
}


.habit-edit:hover {

    transform: scale(1.2);
}

#deleteHabit {

    display: none;
    padding: .5rem .8rem;

    background-color: #FCB55F;
    color: #191923;

    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;

    font-weight: 700;
    cursor: pointer;

    transition: .2s ease;
}


#deleteHabit:hover {

    transform: translateY(-3px);

    box-shadow: 8px 8px 0 #191923;
}


.habit-edit svg {
    width: 1rem;
    height: 1rem;
    display: block;
    fill: none;
    stroke: #191923;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.habit-check svg {
    width: 1rem;
    height: 1rem;
    display: block;
    fill: none;
    stroke: #191923;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.habit-icon svg {
    width: 1.4rem;
    height: 1.4rem;
    display: block;
    fill: none;
    stroke: #191923;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}








body:has(#sidebar.hide) .dashboard {
    margin-left: 0;
}

body:has(#sidebar.hide) .tasks-main {
    margin-left: 2rem;
}

body:has(#sidebar.hide) .marks-main {
    margin-left: 2rem;
}

body:has(#sidebar.hide) .subjects-main {
    margin-left: 2rem;
}

body:has(#sidebar.hide) .horario-section {
    margin-left: 2rem;
}

body:has(#sidebar.hide) .seccion-vistas-agenda {
    padding-left: 0;
}












.daily-reviews-calendar {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #191923;
}

.daily-reviews-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.daily-reviews-header h4 {
    min-width: 5rem;
    margin: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
}

.daily-reviews-header button {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #FCB55F;
    border: 2px solid #191923;
    box-shadow: 3px 3px 0 #191923;

    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;

    cursor: pointer;
    transition: .2s ease;
}

.daily-reviews-header button:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 #191923;
}




.reviews-calendar {
    width: 100%;
    overflow-x: auto;
}


.daily-reviews-header button svg {
    width: 1rem;
    height: 1rem;
    display: block;
    fill: none;
    stroke: #191923;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.reviews-calendar-days {
    min-width: 700px;

    display: grid;
    grid-template-columns: 70px repeat(31, 1fr);
    gap: .25rem;

    padding-bottom: .5rem;

    border-bottom: 2px solid #191923;
}

.reviews-calendar-days span {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: .55rem;
    font-weight: 600;
}




#reviewsCalendarMonths {
    min-width: 700px;
    margin-top: .5rem;
}

.review-month {
    display: grid;
    grid-template-columns: 70px repeat(31, 1fr);
    gap: .25rem;

    min-height: 2rem;
}

.review-month-name {
    display: flex;
    align-items: center;

    font-size: .65rem;
    font-weight: 700;
}




.review-day {
    width: 13px;
    height: 13px;

    justify-self: center;
    align-self: center;

    padding: 0;

    border: 1px solid #b8b8b8;
    border-radius: 50%;

    background-color: #e1e1e1;

    cursor: pointer;
    transition: .2s ease;
}

.review-day:hover {
    transform: scale(1.35);
    border-color: #191923;
}




.review-day.empty {
    visibility: hidden;
    cursor: default;
}




.review-day.rating-1 {
    background-color: #d4513f;
    border-color: #191923;
}

.review-day.rating-2 {
    background-color: #e58b45;
    border-color: #191923;
}

.review-day.rating-3 {
    background-color: #e8d43a;
    border-color: #191923;
}

.review-day.rating-4 {
    background-color: #8fcf7d;
    border-color: #191923;
}

.review-day.rating-5 {
    background-color: #60A561;
    border-color: #191923;
}




.review-detail {
    margin-top: 1.5rem;
    padding: 1rem;

    background-color: #F7F3E3;
    border: 2px solid #191923;
    box-shadow: 5px 5px 0 #191923;
}

.review-detail p {
    margin: 0;
    font-size: .75rem;
}

.review-detail strong {
    font-weight: 700;
}

.review-detail-note {
    margin-top: .7rem !important;
    line-height: 1.5;
}


#reviewYear {
    cursor: pointer;
    transition: .2s ease;
    font-size: 1.2rem;
}

#reviewYear:hover {
    transform: scale(1.08);
}

#reviewYear::after {
    font-size: .55rem;
    font-weight: 600;
    opacity: 0;
    transition: .2s ease;
}

#reviewYear:hover::after {
    opacity: .7;
}



.aaa{
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
}





/* =========================================================
   VISTA SEMANAL
========================================================= */

#calendar.week-view {
    width: 100%;
    height: fit-content;
    min-height: 0;
    overflow: hidden;
}

/* CONTENEDOR DE LOS 7 DÍAS */

#calendar.week-view #calendarDays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));

    width: 100%;
    height: 30rem;

    padding: 0;
    margin: 0;

    overflow: hidden;
}

/* CADA DÍA */

#calendar.week-view .calendar-day {
    position: relative;

    width: 100%;
    height: 30rem;
    min-width: 0;
    min-height: 30rem;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    padding: 0;

    background-color: #F7F3E3;

    border-right: 2px solid #191923;
    border-bottom: 2px solid #191923;

    overflow: hidden;
}

#calendar.week-view .calendar-day:last-child {
    border-right: none;
}


/* CABECERA DEL DÍA */

#calendar.week-view .week-day-header {
    flex-shrink: 0;

    width: 100%;
    height: 4.5rem;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: .15rem;

    padding: .5rem;

    background-color: #FCB55F;

    border-bottom: 2px solid #191923;
}

#calendar.week-view .week-day-header strong {
    font-size: .75rem;
    font-weight: 800;
    text-transform: capitalize;
}

#calendar.week-view .week-day-header span {
    font-size: 1.4rem;
    font-weight: 800;
}


/* DÍA ACTUAL */

#calendar.week-view .calendar-day.today .week-day-header {
    background-color: #60A561;
}


/* CONTENEDOR DE EVENTOS */

#calendar.week-view .week-day-events {
    flex: 1;

    min-height: 0;

    padding: .7rem;

    display: flex;
    flex-direction: column;

    gap: .6rem;

    overflow-y: auto;
    overflow-x: hidden;
}


/* EVENTOS */

#calendar.week-view .calendar-event {
    width: 100%;
    min-height: 3rem;

    box-sizing: border-box;

    padding: .55rem .6rem;

    display: flex;
    align-items: center;

    border: 2px solid #191923;
    box-shadow: 4px 4px 0 #191923;

    border-radius: 0;

    font-size: .7rem;
    font-weight: 700;
    line-height: 1.2;

    cursor: pointer;

    overflow: hidden;
    word-break: break-word;

    transition: .15s ease;
}

#calendar.week-view .calendar-event:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #191923;
}










.timer-header {
    display: flex;
    align-items: center;
    gap: .4rem;

    padding: .35rem .6rem;


    cursor: pointer;
}



/* =========================================
   TEMPORIZADOR
========================================= */

.timer-window {
    position: fixed;
    top: 7rem;
    right: 3rem;

    width: 300px;

    background-color: #F7F3E3;

    border: 2px solid #191923;
    box-shadow: 8px 8px 0 #191923;

    z-index: 4000;

    display: none;
}

.timer-window.show {
    display: block;
}


/* CABECERA */

.timer-window-header {
    height: 3rem;
    padding: 0 1rem;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: #FCB55F;

    border-bottom: 2px solid #191923;

    cursor: grab;
}

.timer-window-header:active {
    cursor: grabbing;
}

.timer-window-header strong {
    font-size: .8rem;
    font-weight: 800;
}

.timer-window-header button {
    width: 2rem;
    height: 2rem;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    border: none;
    box-shadow: none;

    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 700;

    cursor: pointer;
}


/* CONTENIDO */

.timer-content {
    padding: 1.5rem;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 1.5rem;
}


/* TIEMPO */

.timer-display {
    width: 100%;
}

#timerInput {
    width: 100%;

    padding: 0;

    box-sizing: border-box;

    background: transparent;

    border: none;
    outline: none;
    box-shadow: none;

    color: #191923;

    font-family: inherit;
    font-size: 4rem;
    font-weight: 800;

    text-align: center;
    letter-spacing: .05em;
}


/* BOTONES */

.timer-buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: .8rem;
}

.timer-buttons button {
    width: 3.2rem;
    height: 3.2rem;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background-color: #FCB55F;

    border: 2px solid #191923;
    box-shadow: 4px 4px 0 #191923;

    color: #191923;

    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;

    cursor: pointer;

    transition: .15s ease;
}

.timer-buttons button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #191923;
}

.timer-buttons button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #191923;
}














/*MÓVIL*/

@media (max-width: 768px) {

    header{
        width: 95%;
        padding: .5rem 1rem;
        top: .5rem;
    }

    #menuBtn, #userIcon{
        width: 1.2rem;
        height: 1.2rem;
    }

    #sidebar{
        min-height: 80vh;
        height: auto;
        position: fixed;

        left: .8rem;
        top: 5rem;

        transform: none;
        transition: left .2s ease;
    }

    .sidebar{
        background-color: #fcb55fe5;
        padding: 2rem 1rem 1rem 1rem;
    }


    #sidebar.hide{
        left: -100%;
        transform: none;
    }

    .sidebar .item a{
        font-size: .6rem;
    }

    .sidebar .item img{
        width: 1rem;
        height: 1rem;
    }



    body:has(#sidebar.hide) .dashboard {
    margin-left: .2rem;
    }

    body:has(#sidebar.hide) .tasks-main {
        margin-left: .2rem;
    }

    body:has(#sidebar.hide) .marks-main {
        margin-left: .2rem;
    }

    body:has(#sidebar.hide) .subjects-main {
        margin-left: .2rem;
    }

    body:has(#sidebar.hide) .horario-section {
        margin-left: .2rem;
    }

    body:has(#sidebar.hide) .seccion-vistas-agenda {
        padding-left: .2rem;
    }


    .empty-message{
        width: 95%;
        min-height: fit-content;
    }



    .tasks-main, .seccion-vistas-agenda, .marks-main, .subjects-main{
        width: auto;
        margin: 5rem .2rem 1rem .2rem ;
        padding: .5rem .2rem;
    }

    .seccion-vistas-agenda{
        grid-template-columns: none;
    }

    .welcome{
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .welcome h2{
        font-size: 1.8rem;
    }

    .welcome1 p{
        font-size: .7rem;
    }

    .welcome1 #link-pdf{
        font-size: .6rem;
    }

    .aaa{
        display: flex;
        flex-direction: column;
        align-items:start;

        width: 100%;
    }
    .cuenta-atras{
        width: 80%;
    }

    .cuenta-atras span{
        font-size: 1.8rem;
    }


    .habits-list{
        grid-template-columns: 1fr;
    }

    .habit-card{
        min-height: 50px;
    }


    .horario-header{
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .horario-header p{
        font-size: .8rem;
    }
    .calendars-panel{
        display: none;
    }

    .calendars-panel.show {
        display: block;
        padding: .8rem;
        min-height: fit-content;
        margin-top: 0;
    }

    .eventos{
        margin: 0;
        gap: 1rem;
        padding: .5rem 1rem;
        width: 100%;
    }

    .eventos .title {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }
    

    .eventos .title h2{
        font-size: 1.2rem;
    }

    .eventos .title .buttons{
        gap: .3rem;
    }

    .buttons #todayBtn, .buttons #viewBtn, .buttons #addEvent, #viewMenu button, .calendar-item, .tasks-header button, #newSubject, #deleteSubject, #closeSubject, #editSubjectName, .horario-actions button{
        font-size: .6rem;
        padding: .3rem .6rem;
        box-shadow: 2px 2px 0 #191923;
    }

    #calendarsBtn {
        background-color: #FCB55F;
        border: 2px solid #191923;
        box-shadow: 2px 2px 0 #191923;
        padding: .3rem .4rem;
        font-size: .6rem;
    }

    #calendarsBtn {
        display: block;
    }

    .calendar{
        width: 100%;
        box-sizing: border-box;
    }

    .calendar-header{
        padding: .5rem;

    }

    .calendar-header #currentMonth{
        font-size: 1rem;
    }

    .calendar-header button{
        width: 1.2rem;
        height: 1.2rem;
        font-size: .7rem;
    }

    .calendar-weekdays,
    .calendar-days {
        width: 100%;
    }

    .calendar-days{
        grid-template-rows: repeat(5, 6rem);
    }
    .calendar-day {
        min-width: 0;
        box-sizing: border-box;

        font-size: .7rem;
        padding: .4rem;
        gap: .2rem;

        height: 6rem;
    }

    .calendar-event {
        font-size: 0;
        width: 2rem;
        height: .8rem;
        min-height: 8px;
        padding: 0;
        margin: 3px auto 0;
        border: 1px solid #191923;
        box-shadow: none;
    }

    .calendar-day.today > span{
        width: 1.2rem;
        height: 1.2rem;
    }

    .calendars-header{
        margin-bottom: .5rem;
    }
    .calendars-header h4{
        font-size: .8rem;
    }

    .calendars-header #addCalendar{
        font-size: 1rem;
    }


    .calendar-weekdays{
        font-size: .8rem;
    }



    .calendar.week-view .week-day-header {
        display: flex;
        align-items: center;
        justify-content: space-between;

        padding-bottom: .2rem .2rem .5rem;

        border-bottom: 2px solid #191923;
    }

    .calendar.week-view .week-day-header strong {
        font-size: .75rem;
        text-transform: uppercase;
    }

    .calendar.week-view .week-day-header span {
        font-size: 1rem;
        font-weight: 700;
    }

    .calendar.week-view .calendar-event {
        width: 100%;
        height: auto;
        min-height: 2rem;

        box-sizing: border-box;

        padding: .6rem .7rem;

        font-size: .65rem;

        margin: 0;
    }

    .calendar.week-view .calendar-day.today .week-day-header {
        background-color: #FCB55F;
        border: 2px solid #191923;
        padding: .4rem;
    }

    .day-header{
        justify-content: space-between;
        padding: .5rem;
    }
    .day-header strong{
        font-size: 1rem;
    }

    .day-header span{
        font-size: 2rem;
    }

    .calendar-event{
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: .2rem .5rem
    }

    .tasks-main, .marks-main, .subjects-main{
        padding: .5rem .8rem;
    }

    .tasks-header h1, .tasks-tomorrow h2, .tasks-state h2, .tasks-pending h2{
        font-size: 1.5rem;
    }

    .tasks-header{
        padding-bottom: 1rem;
    }
    .tasks-recount{
        gap: .8rem;
        height: fit-content;
        padding-top: none;
    }

    .tasks-recount-div{
        gap: .8rem;
        padding: .5rem 1rem;

        align-items: center;
        justify-content: flex-start;
        text-align: center;

        width: 6rem;
        height: fit-content;
        min-height: 4rem;
    }
    .tasks-recount-div h3{
        font-size: .6rem;
    }

    .tasks-recount-div p{
        font-size: 1rem;
    }


    .task-date{
        font-size: .8rem;
    }


    .task-card{
        padding: .8rem 1.2rem;
    }
    .task-card .task-main h3{
        font-size: .8rem;
    }

    .state-display{
        grid-template-columns: 1fr;
    }

    .asignaturas-feed{
        grid-template-columns: 1fr;
    }



    .subjects-header h1{
        font-size: 1.5rem;
    }

    .subjects-feed{
        grid-template-columns: 1fr;
    }


    .subject-page{
        padding: 1rem;
    }

    .subject-header{
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .subject-header-buttons{
        margin-top: .5rem;
    }
    .subject-info-item{
        padding: 0 1rem 0 1rem;
        grid-template-columns: 100px 1fr 20px;
    }

    .subject-info-value{
        font-size: .7rem;
    }

    .background-controls{
        gap: .5rem;
    }

    .inline-edit{
        font-size: .5rem;
    }
    .inline-edit[type="file"]{
        font-size: .6rem;
    }



    .subject-info-item.editing[data-field="background"] {
        grid-template-columns: 1fr auto;
        row-gap: .6rem;
    }

    .subject-info-item.editing[data-field="background"] .subject-info-label {
        grid-column: 1;
    }

    .subject-info-item.editing[data-field="background"] .background-controls {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    .subject-info-item.editing[data-field="background"] .background-controls input {
        max-width: 100%;
        min-width: 0;
    }

    .subject-info-item.editing[data-field="background"] .edit-field {
        grid-column: 2;
        grid-row: 1;
    }

    .delete-background{
        font-size: .6rem;
    }

    .subject-event-card, .subject-task-card, .subject-mark-card{
        gap: .5rem;
        padding: .5rem;
    }
    .subject-event-card div h3, .subject-task-card div h3, .subject-mark-card div h3{
        font-size: .8rem;
    }












    /* MODALES EN MÓVIL */

    .modal {
        padding: 1rem;
        box-sizing: border-box;
        overflow-y: auto;
    }



    /* MODAL INFORMACIÓN DE TAREA */

    .task-info-modal {
        padding: 1rem;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .task-info {
        width: calc(100% - 2rem);
        min-width: 0;
        max-width: 100%;
        max-height: 90vh;

        box-sizing: border-box;
        padding: 1.2rem;

        overflow-y: auto;
        overflow-x: hidden;
    }

    /* MODAL INFORMACIÓN DE EVENTO */

    .event-info-modal {
        padding: 1rem;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .event-info {
        width: calc(100% - 2rem);
        min-width: 0;
        max-width: 100%;
        max-height: 90vh;

        box-sizing: border-box;
        padding: 1.2rem;

        overflow-y: auto;
        overflow-x: hidden;
    }


    /* MODAL DE CALIFICACIONES */
    .subject-marks-modal {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        min-width: 0;
        box-sizing: border-box;
        padding: 1.2rem;
    }



    /* MODALES DE INFORMACIÓN */
    .task-info,
    .event-info {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        min-width: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* Hacer que los textos largos bajen de línea */
    .task-info p,
    .event-info p,
    .task-info span,
    .event-info span,
    .task-info h3,
    .event-info h3 {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }



    .user-space{
        padding: 0;
    }


    .login-main{
        padding: 0 1rem;
    }


}


