:root {
    --primary: #4b007d;
    --secondary: #6e009c;
    --accent: #8e2b90;
    --background: #15202b;
    --dark: #1a1a1a;
    --text: #ffffff;
    --silver: #cccccc;
    --white: #ffffff;
}

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

@font-face {
  font-family: 'BRUSHSTRIKE';
  src: url('assets/fonts/Brushstrike trial.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
    max-width: 100vw;
}

html.admin, body.admin {
    overflow-x: auto;
}

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

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    width: 95%;
    margin: auto;
    padding: 20px;
    color: var(--white);
    margin-top: 20px;
}

main h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

main p {
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: none;
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav {
    background-color: transparent;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

.main-nav {
    display: flex;
    gap: 20px;
    position: relative;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
    flex-direction: column;
    align-items: center;
}

.dropdown > a {
    cursor: pointer;
    padding: 10px 16px 10px 0px;
    display: inline-block;
    position: relative;
}

.dropdown > a::after {
    content: "▼";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: var(--silver);
    pointer-events: none;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(0) translateY(0);
    min-width: 180px;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 999;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--white);
    display: block;
    font-weight: normal;
    transition: background 0.2s ease;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: var(--primary);
    color: white;
}

.title-banner {
    background-image: url('/assets/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 460px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
}

.title-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.title-banner-content img {
    max-height: 450px;
    max-width: 80%;
    margin-top: 40px;
}

.title-banner-content h2 {
    color: white;
    font-size: 16px;
    font-weight: bold;
    font-style: italic;
    margin: 0;
}

.corner-buttons {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 3;
    pointer-events: none;
}

.corner-buttons-left,
.corner-buttons-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
}

.corner-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.45);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.corner-button img {
    height: 18px;
    width: 18px;
    object-fit: contain;
}

.corner-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

footer {
    background-color: var(--background);
    color: var(--silver);
    text-align: center;
    padding: 25px 20px;
    font-size: 14px;
    line-height: 1.6;
    border-top: var(--accent) 2px solid;
}

.footer-contact h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 16px;
}

.footer-contact p {
    margin: 0 0 15px;
}

.footer-meta {
    font-size: 13px;
    color: #aaa;
}

.footer-meta p {
    margin: 4px 0;
}

.footer-meta a {
    color: var(--silver);
    text-decoration: underline;
}

.footer-meta a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-note {
    font-style: italic;
    font-size: 12px;
    color: #888;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
    gap: 10px;
}

input[type="text"],
input[type="password"],
button {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

button {
    background-color: var(--primary);
    color: var(--white);
    cursor: pointer;
    border: none;
}

button:hover {
    background-color: var(--secondary);
}

.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

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

.button-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 8px;
    min-width: 300px;
    max-width: 400px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.75);
    border: 2px solid;
    position: relative;
    transition: opacity 0.3s ease;
}

.toast-success {
    background-color: rgba(39, 160, 46, 0.85);
    border-color: #30c238;
    box-shadow: 0 0 6px #30c238;
}

.toast-error {
    background-color: rgba(211, 47, 47, 0.85);
    border-color: #d32f2f;
    box-shadow: 0 0 6px #d32f2f;
}

.toast-info {
    background-color: rgba(2, 136, 209, 0.85);
    border-color: #0288d1;
    box-shadow: 0 0 6px #0288d1;
}

.toast-warning {
    background-color: rgba(255, 143, 0, 0.85);
    border-color: #ff8f00;
    box-shadow: 0 0 6px #ff8f00;
}

.toast .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    margin-left: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.toast .close-btn:hover {
    color: #ff4444;
}

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

.dropdown-content .dropdown-group {
    margin-top: 20px;
}

.dropdown-content .dropdown-group:first-child {
    margin-top: 0;
}

.side-banner-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.banner-side {
    position: absolute;
    top: 0;
    width: 250px;
    height: 550px;
    z-index: 5;
}

.banner-left {
    left: -230px;
}

.banner-right {
    right: -230px;
}

.banner-side img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}