#main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid black;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    gap: 0;
}
#main-nav {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    gap: 1rem;
}

#logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

#header-icon {
    height: 50px;
    width: auto;
}

/* Breadcrumb */
#breadcrumb {
    flex-grow: 1;
}
#breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.875rem;
}
#breadcrumb li,
#breadcrumb li::after {
    font-weight: 700;
    text-decoration: none;
    font-size: 1.21rem;
}
#breadcrumb li::after {
    content: "￫";
    margin-left: 0.5rem;
}
#breadcrumb li:last-child::after {
    content: "";
}
#breadcrumb li:first-child a {
    text-decoration: none;
    color: black;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-arial-black);
    font-size: 1.61rem;
}
#breadcrumb a:hover {
    text-decoration: underline;
}
#breadcrumb a svg{
    vertical-align: text-top;
    width: 1.21rem;
    height: 1.21rem;
}

/* Menu toggle */
#menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;

    margin-left: 1rem;
}
#menu-toggle img {
    width: 2rem;
    height: 2rem;
    display: block;
}
#menu-toggle[aria-expanded="true"] {
    transform: rotate(90deg);
}

/* Mobile menu */
#mobile-menu {
    position: absolute;
    z-index: 1000;

    top: 100%;
    right: 1rem;

    background-color: var(--color-left-aside);
    min-width: 15rem;
    display: none;
}
#mobile-menu[aria-hidden="false"] {
    display: block;
}
#mobile-menu ul {
    list-style: none;
}
#mobile-menu a,
#mobile-menu button {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--color-black);
    transition: background-color 0.2s;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}
#mobile-menu a:hover,
#mobile-menu button:hover {
    background-color: var(--color-left-aside);
}

.menu-divider {
    height: 1px;
    background-color: var(--color-left-aside);
    margin: 0.5rem 0;
}

/* Messages */
#messages {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.message {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}
.message-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}
.message-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--color-warning);
    border: 1px solid var(--color-warning);
}
.message-danger,
.message-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
}
.message-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--color-info);
    border: 1px solid var(--color-info);
}

.message-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.5rem;
    opacity: 0.5;
}
.message-close:hover {
    opacity: 1;
}

/* Footer */
#main-footer {
    background-color: var(--color-left-aside);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: auto;
}
#main-footer p {
    font-size: 0.75rem;
    color: var(--color-black);
    opacity: 0.7;
}
#footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}
#footer-nav a {
    color: var(--color-black);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline;
    background: none;
}
#footer-nav a:hover {
    color: var(--color-link);
    text-decoration: underline;
}


/* Social login section */
.social-login-section {
    margin-top: 1.5rem;
    text-align: center;
}

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0 1rem;
    color: var(--color-black);
    opacity: 0.6;
}
.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-left-aside);
}
.divider-text span {
    padding: 0 1rem;
    font-size: 0.875rem;
    font-family: var(--font-trebuchet);
}

.social-login-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--color-left-aside);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: var(--font-trebuchet);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: var(--color-white);
    color: var(--color-black);
}
.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}
.social-btn svg {
    flex-shrink: 0;
}

/* Google button */
.social-btn-google:hover {
    border-color: #4285F4;
    background-color: rgba(66, 133, 244, 0.05);
}

/* Apple button */
.social-btn-apple {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}
.social-btn-apple:hover {
    background-color: #333;
    border-color: #333;
}
.social-btn-apple:visited {
    color: var(--color-white);
}

/* Responsive */
@media (max-width: 768px) {
    #breadcrumb {
        font-size: 0.75rem;
    }
    #footer-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }
    #main-nav {
        padding: 0;
    }
    #header-icon {
        height: 2.6rem;
        padding-left: 0.75rem;
    }
}
/* Responsive adjustments */
@media (max-width: 480px) {
    .social-login-buttons {
        flex-direction: column;
    }
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}



/* Animation for messages */
@keyframes slideIn {
    from {
        transform: translateY(-0.5rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    animation: slideIn 0.3s ease-out;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

