:root {
    --primary: #C26B4A;
    --bg: #FAF8F0;
    --text: #4A4A4A;
    --gold: #D4AF37;
    --white: #FFFFFF;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Playfair Display', serif;
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.petal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.petal {
    position: absolute;
    background-color: var(--gold);
    width: 15px;
    height: 15px;
    border-radius: 15px 0 15px 0;
    opacity: 0.6;
    animation: falling 10s linear infinite;
    top: -20px;
}

.petal:nth-child(1) {
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.petal:nth-child(2) {
    left: 30%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.petal:nth-child(3) {
    left: 50%;
    animation-duration: 11s;
    animation-delay: 4s;
}

.petal:nth-child(4) {
    left: 70%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.petal:nth-child(5) {
    left: 85%;
    animation-duration: 13s;
    animation-delay: 3s;
}

.petal:nth-child(6) {
    left: 95%;
    animation-duration: 16s;
    animation-delay: 5s;
}

@keyframes falling {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.app-container {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    border-top: 5px solid var(--primary);
}

header h1 {
    font-family: var(--font-script);
    color: var(--primary);
    text-align: center;
    font-size: 3rem;
    margin: 0 0 1.5rem 0;
}

.view-state {
    display: none;
    animation: fadeIn var(--transition-speed) ease-in-out;
}

.view-state.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

input[type="password"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--font-body);
}

.error-msg {
    color: red;
    font-size: 0.85rem;
    margin-top: 10px;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
}

#login-btn {
    background-color: var(--text);
    color: var(--white);
}

.text-btn {
    background: none;
    color: var(--primary);
    padding: 0;
    margin-bottom: 1rem;
    text-decoration: underline;
}

.primary-btn {
    width: 100%;
    background-color: #25D366;
    color: var(--white);
    font-size: 1.1rem;
    padding: 12px;
    margin-top: 1rem;
}

.directory-list {
    list-style: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
}

.directory-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.directory-list li:hover {
    background-color: var(--bg);
    color: var(--primary);
}

.guest-card {
    text-align: center;
}

.qr-container {
    background: var(--bg);
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    margin: 1rem 0;
}

.qr-container img {
    max-width: 200px;
    height: auto;
    display: block;
}

.action-controls {
    text-align: left;
    margin-top: 1rem;
}

.lang-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}