@font-face {
    font-family: 'Adwaita Sans';
    src: url('/0/fonts/AdwaitaSans-Regular.woff2') format('woff2'),
         url('/0/fonts/AdwaitaSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Adwaita Sans';
    src: url('/0/fonts/AdwaitaSans-Italic.woff2') format('woff2'),
         url('/0/fonts/AdwaitaSans-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Adwaita Mono';
    src: url('/0/fonts/AdwaitaMono-Regular.woff2') format('woff2'),
         url('/0/fonts/AdwaitaMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Adwaita Mono';
    src: url('/0/fonts/AdwaitaMono-Bold.woff2') format('woff2'),
         url('/0/fonts/AdwaitaMono-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Adwaita Mono';
    src: url('/0/fonts/AdwaitaMono-Italic.woff2') format('woff2'),
         url('/0/fonts/AdwaitaMono-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Adwaita Mono';
    src: url('/0/fonts/AdwaitaMono-BoldItalic.woff2') format('woff2'),
         url('/0/fonts/AdwaitaMono-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

html {
    font-family: 'Adwaita Sans', sans-serif;
}

body {
    background: linear-gradient(to right, #f3e5f5, #e1bee7); /* Light purple and pink gradient */
    color: #4a148c; /* Deep purple text */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-panel {
    margin: 32px auto;
    padding: 20px 24px;
    max-width: 420px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #6a1b9a;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(74, 20, 140, 0.25);
}

.auth-panel form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-panel label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #4a148c;
    gap: 6px;
}

.auth-panel .auth-error {
    color: #c62828;
    margin: 0;
    font-weight: 600;
}

@media (max-width: 520px) {
    .auth-panel {
        margin: 24px 12px;
        padding: 16px;
    }
}

header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title user"
        "menu menu";
    align-items: center;
    justify-content: center;
    gap: 2px;
    background-color: #4a148c;
    text-align: center;
    padding: 0px 2px 2px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 2px solid #3f1a39;
    box-shadow: 0px 4px 6px rgba(61, 26, 63, 0.5);
}

header h1 {
    grid-area: title;
    color: #ffd9f2;
    font-size: 3em;
    text-shadow: 
        -2px -2px 2px rgba(0, 0, 0, 0.2), /* Outline effect */
        1px 1px 2px rgba(0, 0, 0, 0.2);   /* Complementary shadow */

}

header button {
    border: 2px solid #3f1a39;
    padding: 7px 10px;
    font-weight: 600;
}
#headbuttons {
    grid-area: menu;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
}

hr {
    border: 2px solid #4a148c;
    border-radius: 5px;
  }

#loadermenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
    width: 100%;
    text-align: center;
}

.menu-divider {
    color: #ffd9f2;
    font-weight: 700;
    padding: 0 4px;
}

#loadermenu a {
    display: inline-block;
    margin: 0 2px;
    padding: 2px 8px;
    border-radius: 5px;
    background-color: #8e24aa;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid transparent;
}

#loadermenu a:hover {
    background-color: #b468c9;
}

#loadermenu a.active {
    background-color: #d48bf0;
    color: #4a148c;
    box-shadow: inset 0 0 0 2px #4a148c;
    border-color: #4a148c;
}

#userInfo {
    grid-area: user;
    justify-self: end;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(74, 20, 140, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
    color: #4a148c;
    font-weight: 300;
    box-shadow: 0 2px 6px rgba(27, 0, 51, 0.2);
}

#userInfo form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin: 0;
}

#userInfo strong {
    color: #4a148c;
}

#userInfo button {
    padding: 4px 12px;
    border-radius: 6px;
    border-color: #4a148c;
}


main {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

footer {
    width: 100%;
    background-color: #4a148c;
    color: #efd7f4;
    text-align: center;
    font-size: 12px;
    line-height: 10px;
    padding: 0;
    display: flex;
    justify-content: space-between;
}




.footleft,
.footright {
    flex-grow: 1;
    padding: 0 5px;
}

.footleft {
    text-align: left;
}

.footright {
    text-align: right;
}

h1, h2, h3 {
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 2.5em;
    color: #6a1b9a;
}

h2 {
    font-size: 2em;
    color: #6a1b9a; /* Slightly lighter purple for variation */
}

h3 {
    font-size: 1.5em;
    color: #8e24aa; /* A softer shade to keep hierarchy clear */
}

p {
    font-size: 1em;
    line-height: 1.6;
    color: #4a148c;
    margin: 10px 0;
}



#contentarea {
    text-align: center;
    max-width: 100vw; 
    margin: 0 auto;
}

.readme {
    list-style-type: none; /* Removes bullets */
    text-align: center; /* Centers the text */
    padding: 0; /* Removes extra padding on the left */
    margin: 0 auto; /* Centers the list itself */
}


button {
    background-color: #8e24aa;
    color: white;
    border: none;
    padding: 5px 2px 8px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #b468c9;
}


input[type="text"],
input[type="date"],
input[type="number"],
input[type="password"],
select {
    background-color: #efd7f4; /* Soft pinkish-purple */
    color: #4a148c; /* Deep purple */
    border: 2px solid #6a1b9a; /* Medium purple */
    padding: 8px;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease-in-out;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="password"],
select:focus {
    background-color: #e1bee7; /* Slightly deeper shade */
    border-color: #8e24aa; /* More vibrant purple */
    box-shadow: 0px 0px 6px rgba(138, 43, 226, 0.5); /* Soft glowing effect */
}

option {
    background-color: #ffd9f2; /* Light pink shade */
    color: #4a148c; /* Deep purple */
}

option:checked {
    background-color: #ff72ce; /* Slightly deeper shade */
    color: #ffffff; /* White text for better contrast */
    font-weight: bold;
}

::placeholder {
    color: #8e24aa; /* Softer placeholder text */
}

input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f8dbed; 
        border-left: .5px solid #4a148c;
}

::-webkit-scrollbar-thumb {
    background-color: #4a148c; 
    border-radius: 10px;
    border: 1px solid #e1bee7;
}


/*  Div Collapse -  */
[data-collapse="true"] .collapsed-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    visibility: visible; 
    position: relative; 
}
