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

/*? Root */
:root{
    --neutral-light: #FFFFFF;
    --neutral-dark: #333333;
    --primary-dominant: #7B1315; 
    --secondary-dominant: #BB2626;
    --supplementary-color: #F4971D;
    --supplementary-dark: #c57307;
    --gradient-primary: linear-gradient(to top right, var(--supplementary-color), #BC1D20);
    --gradient-secondary: linear-gradient(to top right, #F13939, #551111);
    --success-color: #10b981;
    --success-color-dark: #05724e;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --border-radius: 0.375rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /*texts sizes*/
    --text-note: 0.8rem;        /* footnotes, captions */
    --text-normal: 1rem;          /* paragraphs, main content */
    --text-lead: 1.25rem;       /* introductory paragraphs */
    /*headings*/
    --text-subheading: 1.3rem;
    --text-heading: 1.6rem;
    --title-size: 2rem;       /* main titles */
    --text-title: 2.5rem;
    --text-display: 3rem;   /* hero/attention text */

    /* Font weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    --base-line-height: 1.6;
    --border-inputs: 1px solid var(--gray-200);
}

/*? Global */
*{
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

img{
    max-width: 100%;
    height: auto;
}

main {
    height: auto;
    overflow-y: auto;
    padding-bottom: 60px;
}

/*? password toggle */
.password-field {
    position: relative;
    width: 100%;
}

.password-input-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-input-container input {
    width: 100%;
    padding-right: 40px; 
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #606060;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
}

.toggle-password:focus {
    outline: none;
}

.toggle-password:hover {
    color: #333;
}

/*? notification*/
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    left: auto;
    top: auto;
    padding: 1rem;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    display: none;
    animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/*? Fonts */
html body{
    line-height: 1.6;
    padding: 0;
    height: 100%;
    width: auto;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    /* margin-bottom: 1rem; */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a{
    text-decoration: none;
}

/*? Navbar */
.header {
    display: flex;
    justify-content: space-between;
    background-color: var(--neutral-dark);
    align-items: center;
    text-align: center;
    padding: .5rem 6rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.headerLogo{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--neutral-light);
    gap: 1rem;
    height: 60px;
}

.headerLogo img{
    width: 60px;
    height: 60px;
    display: block;
}

.headerLogo h1 {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    font-size: 2rem;
}

.headerBtnlogin{
    background-color: var(--secondary-dominant);
}

.headerBtnlogin:hover{
    background-color: var(--primary-dominant);
}

.full-logo {
    display: none;
}

/*? Buttons */
button{
    color: var(--neutral-light);
    border: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 1rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: 0.3s;
}

.headerBtnOut{
    background-color: var(--secondary-dominant);
}

.headerBtnOut:hover{
    background-color: var(--primary-dominant);
    
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fafafa;
}

/*? Sidebar */

aside {
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    width: 250px;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--neutral-light);
    box-shadow: var(--box-shadow);
    z-index: 5;
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease;
}

aside nav{
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    text-align: left;
    width: auto;
    gap: 1.5rem;
    padding: 1rem 1rem;

}

aside nav a{
    display: flex;
    align-items: center;
    gap: 1rem;
    width: auto;
    height: 100%;
}

.sideLink{
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 45px;
    width: 200px;
    padding: 0.5rem 0;
    transition: 0.3s;
    color: var( --neutral-dark);
}

.sideLink p {
    margin-top: 12px;
}

.sideLink i{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    font-size: 2rem;
    line-height: 1;
}

.sideLink:hover, .selectLink{
    background-color: var(--secondary-dominant);
    color: var(--neutral-light);
    transition: 0.3s;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0.5rem;
}

.sideLink:hover a p, .selectLink a p{
    color: var(--neutral-light);
}
.profile{ 
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1rem;
    width: auto;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

.profile-img{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

.profile-img i{
    font-size: 4rem;
    color: var(--secondary-dominant);
}

.profile-info{
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: left;  
    text-align: left;
    width: 100%;
}   

/*? Inputs */
input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
}

input:focus {
    outline: none;
    border-color: var(--secondary-dominant);
    box-shadow: 0 0 0 2px rgba(187, 38, 38, 0.3);
}

.asideBtnOut{
    display: none;
}
.hamburger {
    display: none; 
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--neutral-light); 
    z-index: 1000;
}

.hamburger i {
    display: block;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

/*? Notifications */
.input-error {
    border: 2px solid #e74c3c;
    background-color: #fcebea;
}

.input-success {
    border: 2px solid #2ecc71;
    background-color: #eafaf1;
}

.input-animate {
    animation: popInput 0.3s ease;
}

@keyframes popInput {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

.error-msg {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: var(--border-radius);
    margin: 0.3rem;
    font-size: 0.9rem;
    text-align: center;
}

.success-msg {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: var(--border-radius);
    margin: 0.3rem;
    font-size: 0.9rem;
    text-align: center;
}

/*? Titulos */
.titulo {
    grid-area: title;
    display: inline-block;
    /* margin-top: 1.5rem; */
}


/*? Sected options */
.SurveyOptions {
    background-color: var(--gray-200);
    display: flex;
    flex-direction: row;
    width: 40%;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-evenly;
    border-radius: var(--border-radius);
    padding: 5px;
}

.surveyOption {
    margin: 0;
    padding: 4px 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    flex: 1;
    font-size: 0.9rem;
    text-align: center;
    background-color: transparent; 
}

.surveyOption:not(.selectedOption):hover {
    background-color: var(--gray-100);
}

.surveyOption h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--gray-800);
}

.selectedOption {
    background-color: var(--neutral-light);
    font-weight: bold;
    border: none;
    pointer-events: none;
}

/** SurveyOptions Responsive Media Queries */
@media (max-width: 1600px) and (min-width: 1200px) {
    .SurveyOptions {
        max-width: 60%;
        min-width: 40%;
        width: auto;
    }
}

@media (max-width: 1200px) and (min-width: 961px) {
    .SurveyOptions {
        width: 80%;
        margin-left: 2rem;
    }
}

@media (max-width: 960px) {
    .SurveyOptions {
        flex-direction: column;
        width: 100%;
        gap: 0.2rem;
        padding: 8px;
    }
    
    .surveyOption {
        width: 100%;
        padding: 8px 16px;
        font-size: 1rem;
        border: none;
    }
    
    .surveyOption h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 550px) {
    .SurveyOptions {
        flex-direction: column !important;
        width: 100%;
        gap: 0.2rem;
        padding: 8px;
    }
    
    .surveyOption {
        width: 100%;
        padding: 8px 16px;
        font-size: 1rem;
        border: none;
    }
    
    .surveyOption h3 {
        font-size: 1.1rem;
    }
}

/*? modal windows*/
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s;
    margin: 0 1rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    padding-right: 2rem;
}

.modal-header h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.modal-header p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-body {
    padding: 1.25rem;
}

#loading-modal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--supplementary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--supplementary-dark);
}

.btn-cancel {
    /* background-color: var(--secondary-dominant);
    color: white; */
    border: 1px solid var(--secondary-dominant);
    color: var(--secondary-dominant);
    background-color: transparent;
}

.btn-cancel:hover {
    background-color: var(--secondary-dominant);
    color: white;
    /* background-color: var(--primary-dominant); */
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #a01414;
}

/*? modal forms*/
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.625rem;
    border-radius: var(--border-radius);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/*! <----------------------MEDIA QUERIES---------------------->*/
@media screen and (max-width: 960px) {
    main {
        grid-column: 1;
        /* padding-top: 1rem; */
        height: auto;
        min-height: calc(100vh - 70px);
    }

    .header {
        min-height: 70px;
        height: 70px;
        padding: 0.5rem 1rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0; 
    }

    .header-title {
        display: none !important;
    }
    
    .small-logo {
        display: none !important;
    }
    
    .headerLogo {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .full-logo {
        background-image: url(../../images/SDGKU_Full_Logo.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: block;
        height: 70px;
        width: 300px;
    }

    .headerBtnlogin {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
    .principalDashboard{
        margin-left: 0;
    }
    aside {
        margin-top: 0;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 70px);
        display: none;
        z-index: 999;
        min-width: 358px;
        overflow-y: auto;
        overflow-x: hidden;
        color: var(--neutral-light);
        background-color: #333;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease;
        opacity: 0;
    }

    aside.show {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 70px); 
        position: fixed;
        top: 70px;
        transform: translateX(0);
        opacity: 1;
    }

    .hamburger {
        display: block; 
    }
    
    .hamburger i {
        transition: transform 0.3s ease;
    }
    
    .hamburger.active i {
        transform: rotate(90deg);
    }

    .headerBtn {
        display: none;
    }

    aside nav {
        height: auto;
        min-height: fit-content;
        flex: 0 1 auto; 
        margin-bottom: 20px; 
    }
    
    .profile {
        position: relative;
        margin-top: 10px;
        flex-shrink: 0;
    }

    .sideLink{
        color: var(--neutral-light);
    }

    .asideBtnOut{
        margin-left: 20px;
        margin-top: 20px;
        background-color: var(--secondary-dominant);
        display: block;
    } 
    
    .asideBtnOut:hover{
        background-color: var(--primary-dominant);
    }

    .headerBtnOut{
        display: none;
    }
    
    .dashboard-container {
        grid-template-columns: 1fr; 
        margin-top: 70px; 
        min-height: calc(100vh - 70px);
    }

    nav .sideLink {
        
        padding: 10px 20px;
        width: 80%;
        border-bottom: 1px solid #444;
    }  

    nav .sideLink a, nav .sideLink i {
        color: white;
    }

}
@media screen and (max-width: 400px) {
    .header { 
        display: flex;
        justify-content: left;
        width: auto;
        padding: 0.5rem 1rem;
        z-index: 10; 
        height: 70px; 
    }

    .dashboard-container {
        margin-top: 70px;
    }

    .header-title {
        display: none !important;
    }
    
    .small-logo {
        display: none !important;
    }
    
    .headerLogo {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .full-logo {
        background-image: url(../images/SDGKU_Full_Logo.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: block;
        height: 65px;
        width: 270px;
    }

    .headerBtnlogin {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
    
}





/*TODO <----------------------Css primario faltante---------------------->*/
/*?  */
/*?  */
/*?  */
/*?  */
/*?  */ 

/*! <-------------------Notas---------------------->*/
/*? -> Cuando se seleccione una petaña en el sidebar que se manttenga el efecto de hover */
