/* css/layout.css */
.app-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: #f7f9fc;
}

/* Page states and transitions */
.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 10;
}

.page.active {
    opacity: 1;
    visibility: visible;
    z-index: 20;
}

/* Common Header */
.app-header {
    height: 90px;
    width: 100%;
    background-color: var(--ariston-red);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999 !important;
}

.header-home-btn {
    width: 90px;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.header-home-btn:hover, .header-home-btn.focused {
    background-color: rgba(255, 255, 255, 0.15);
}

.header-home-btn img {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.app-header.header-centered .header-home-btn {
    display: none;
}

.app-header.header-centered {
    justify-content: center;
    padding: 0 40px;
}

.app-header.header-centered .header-controls {
    display: none;
}

.app-logo {
    height: 40px;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-lang-switcher {
    display: flex;
    background-color: #a60d26; /* Crimson merah lebih gelap */
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.header-lang-switcher .lang-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.header-lang-switcher .lang-btn.active {
    background: #ffffff;
    color: var(--ariston-red);
}

.header-separator {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.25);
    margin: 0 10px;
}

.exit-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 8px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.exit-btn:hover, .exit-btn.focused {
    color: rgba(255, 255, 255, 0.8);
}

.exit-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
}
