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

:root {
    --primary-color: #5A67D8;
    --secondary-color: #4C51BF;
    --background-color: #F7FAFC;
    --card-background: #FFFFFF;
    --text-color: #2D3748;
    --subtle-text-color: #718096;
    --border-color: #E2E8F0;
    --success-color: #38A169;
    --error-color: #E53E3E;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background: url("/getFiles/templates/image/2_9_bgImage.png") no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-color);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    backdrop-filter: blur(5px);
    animation: bgMove 15s ease-in-out infinite alternate;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw; 
    min-height: 100vh;
    height: -webkit-fill-available;
    background: linear-gradient(120deg, rgba(255,0,0,0.3), rgba(255,255,0,0.3), rgba(0,0,255,0.3));
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    z-index: -1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


@keyframes bgMove {
    0% {
        background-size: 100% 100%;
        background-position: center;
    }
    50% {
        background-size: 105% 105%; 
        background-position: center top;
    }
    100% {
        background-size: 100% 100%;
        background-position: center;
    }
}

#header_page{
    width: 100%;
    height: 90px;
    background: white;
    box-shadow: 0 10px 25px -5px var(--shadow-color), 0 10px 10px -5px var(--shadow-color);
    display: flex;
    flex-direction: row;
}

#left_header{
    display: flex;
    width: calc(100% / 2);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}

#left_header img{
    width: 90px;
    height: 90px;
    border-radius: 50%;
}

#title_left{
    margin-left: 10px;
}

#title_left h1{
    font-size: 1.8rem;
}

#right_header{
    display: flex;
    width: -webkit-fill-available;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
}

#right_header a{
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.0rem;
    padding: 20px;
    width: fit-content;
    border-radius: 10px;
    cursor: pointer;
}

#right_header a:last-child{
    margin-right: 20px;
}

#right_header a:hover{
    background-color: var(--border-color);
}

#right_header a:not(:last-child){
    margin-right: 10px;
}

.userInfo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-radius: 8px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    width: fit-content;
    cursor: pointer;
}

.userInfo:hover {
    background-color: var(--border-color);
}

.userInfo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.userInfo .infoText {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.userInfo .infoText .name {
    font-weight: bold;
    font-size: 0.95rem;
    color: red;
}

.userInfo .infoText #email {
    font-size: 0.85rem;
    color: var(--subtle-text-color);
}

.userInfo i {
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#footer_page {
    width: 100%;
    height: 60px;
    background-color: #1e293b;
    display: flex;
    color: white;
    align-items: center;
    justify-content: space-between;
    padding: 5px 40px;
    flex-shrink: 0;
}

#footer_page a{
    color: inherit;
}

#responsive-break{
    display: none;
}

@media (max-width: 768px) {
    body{
        background: none;
    }
    body::before {
        display: none;
    }
    #header_page {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        text-align: center;
    }

    #left_header, #right_header {
        width: 100%;
        justify-content: center;
        padding: 10px 0;
        flex-wrap: wrap;
    }

    #left_header {
        flex-direction: column;
    }

    #left_header img {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }

    #title_left {
        margin-left: 0;
    }

    #title_left h1 {
        font-size: 1.5rem;
    }

    #right_header a {
        font-size: 0.95rem;
        margin: 5px 10px;
    }

    #footer_page {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        text-align: center;
        gap: 5px;
    }

    #footer_page p {
        margin: 4px 0;
        font-size: 0.95rem;
    }

    #responsive-break{
        display: block;
    }
}
