:root {
    --bg-main: #d1ba9e;
    --card-cream: #f2efe9;
    --text-dark: #2a2421;
    --text-placeholder: #a09283;
    --font-serif: 'Playfair Display', 'Cinzel', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: var(--font-serif);
    background-color: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

.app-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.mobile-container {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-main);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    z-index: 2;
    flex-shrink: 0;
}

.desktop-hero {
    display: none;
}

@media (min-width: 900px) {
    html, body {
        height: 100vh;
        overflow: hidden;
    }

    .app-layout {
        height: 100vh;
        overflow: hidden;
    }

    .mobile-container {
        width: 420px !important;
        min-width: 420px !important;
        max-width: 420px !important;
        height: 100vh;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.08);
    }

    .desktop-hero {
        display: flex !important;
        flex: 1;
        height: 100vh;
        position: relative;
        overflow: hidden;
        align-items: center;
        justify-content: flex-end;
        padding: 60px 80px;
        color: #ffffff;
    }

    .hero-bg-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .desktop-hero .hero-overlay {
        content: '';
        position: absolute;
        top: 0; 
        left: 0; 
        right: 0; 
        bottom: 0;
        background: linear-gradient(to right, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
        z-index: 1;
        display: block !important;
    }

    .desktop-hero .hero-content {
        position: relative;
        z-index: 2;
        max-width: 480px;
        text-align: right;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    }

    .desktop-hero .hero-subtitle {
        font-size: 1.8rem;
        font-family: 'Playfair Display', serif;
        margin-bottom: 2px;
    }

    .desktop-hero .hero-title {
        font-size: 3.2rem;
        font-family: 'Playfair Display', serif;
        font-style: italic;
        font-weight: 600;
        margin-bottom: 20px;
        line-height: 1.1;
    }

    .desktop-hero .hero-quote {
        font-size: 0.9rem;
        line-height: 1.6;
        font-family: 'Playfair Display', serif;
        font-style: italic;
        opacity: 0.95;
    }
}

.bg-butterfly-top {
    position: absolute;
    top: 10px;
    right: -15px;
    width: 180px;
    height: 180px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.bg-butterfly-bottom {
    position: absolute;
    bottom: 10px;
    left: -15px;
    width: 180px;
    height: 180px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.bg-decoration {
    position: absolute;
    bottom: 70px;
    left: -20px;
    width: 200px;
    height: 200px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.page-section {
    min-height: 100vh;
    padding: 30px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    margin: 10px 0 20px 0;
    line-height: 1.3;
}

#loginSection {
    justify-content: center;
    align-items: center;
}

.login-card {
    background-color: var(--card-cream);
    border-radius: 16px;
    padding: 30px 25px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
    text-align: center;
}

.login-card h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.login-card .input-field {
    margin-bottom: 20px;
}

.login-card .input-field input {
    border-bottom: 1px solid #b3a290 !important;
    box-shadow: none !important;
    color: var(--text-dark);
}

.login-card .input-field label {
    color: var(--text-placeholder) !important;
}

.login-card .input-field input:focus + label {
    color: var(--text-dark) !important;
}

.btn-login {
    background-color: var(--text-dark) !important;
    color: var(--card-cream) !important;
    width: 100%;
    border-radius: 20px !important;
    height: 42px !important;
    line-height: 42px !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px;
    box-shadow: none !important;
    margin-top: 10px;
}

.form-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.input-group-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 10px;
    margin-bottom: 2px;
    display: block;
}

.custom-input {
    width: 100% !important;
    background-color: var(--card-cream) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
    height: 38px !important;
    box-sizing: border-box !important;
    font-size: 0.8rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 4px !important;
    box-shadow: none !important;
}

.custom-input::placeholder {
    color: var(--text-placeholder);
    font-size: 0.8rem;
}

.file-upload-box {
    position: relative;
    background-color: var(--card-cream);
    border-radius: 12px;
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 4px;
    cursor: pointer;
}

.file-upload-box .file-label {
    font-size: 0.8rem;
    color: var(--text-placeholder);
}

.file-upload-box input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.btn-bottom-action {
    background-color: var(--card-cream) !important;
    color: var(--text-dark) !important;
    width: 100%;
    border-radius: 12px !important;
    height: 42px !important;
    line-height: 42px !important;
    font-weight: 700;
    font-size: 0.85rem !important;
    box-shadow: none !important;
    text-transform: none !important;
    margin-top: 25px;
}

#dashboardSection {
    padding-bottom: 25px;
}

.welcome-text {
    text-align: center;
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.hero-section {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-top: 1px solid #1a1513;
    border-bottom: 1px solid #1a1513;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-container {
    padding: 0 20px;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.menu-card {
    background-color: var(--card-cream);
    border-radius: 12px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.menu-text {
    color: var(--text-dark);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.btn-logout {
    background-color: var(--text-dark) !important;
    color: var(--card-cream) !important;
    width: 100%;
    border-radius: 10px !important;
    height: 40px !important;
    line-height: 40px !important;
    box-shadow: none !important;
    font-size: 0.8rem !important;
    text-transform: none !important;
    margin-top: 20px;
}

.ucapan-card {
    background-color: var(--card-cream);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.ucapan-sender {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.ucapan-text {
    font-size: 0.78rem;
    color: #4a4038;
    line-height: 1.45;
    margin: 0;
}