/* --- VARIABLES --- */
:root {
    --primary-color: #B8860B;
    --secondary-color: #F5F5DC;
    --bg-color: #FDFBF7;
    --text-color: #333333;
    --accent-color: #FFF8DC;
    --font-main: 'Work Sans', sans-serif;
    --font-script: 'Great Vibes', cursive;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* --- UTILITIES --- */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    min-height: 100vh;
    position: relative;
}

h1, h2, h3 { text-align: center; }

h1.title-script {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

h2.section-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    margin-top: 40px;
}

p { font-size: 0.95rem; text-align: center; margin-bottom: 15px; color: #555; }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover { transform: translateY(-2px); background-color: #8B6508; }

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
}
.btn-outline:hover { background-color: var(--primary-color); color: white; }

/* --- COVER PAGE --- */
#cover-page {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1519225421980-715cb0202128?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    transition: transform 0.8s ease-in-out;
}
#cover-page.slide-up { transform: translateY(-100%); }
#cover-page h1 { color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
#cover-page p { color: #eee; }

.guest-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0 20px 0;
    color: var(--accent-color) !important;
    text-transform: capitalize;
}

/* --- ANIMATION --- */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: 1s all ease;
}
.reveal.active { transform: translateY(0); opacity: 1; }

/* --- COMPONENTS --- */
.couple-wrapper { display: flex; flex-direction: column; gap: 30px; margin-top: 20px; }
.couple-card { text-align: center; }
.couple-img {
    width: 150px; height: 150px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--primary-color);
    padding: 5px; margin-bottom: 15px;
}
.instagram-link { color: var(--primary-color); font-size: 1.5rem; margin-top: 10px; display: inline-block; }

.event-card {
    background-color: var(--accent-color);
    padding: 20px; border-radius: 10px; margin-bottom: 20px;
    text-align: center; border: 1px dashed var(--primary-color);
}
.event-card i { color: var(--primary-color); font-size: 2rem; margin-bottom: 10px; }

/* --- COUNTDOWN --- */
#countdown { display: flex; justify-content: center; gap: 15px; margin: 20px 0; }
.time-box {
    background-color: var(--primary-color);
    color: white; padding: 10px;
    border-radius: 5px; min-width: 60px; text-align: center;
}
.time-box span { display: block; font-weight: bold; font-size: 1.2rem; }
.time-box small { font-size: 0.7rem; text-transform: uppercase; }

/* --- GALLERY --- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px;
}
.gallery-img {
    width: 100%; height: 150px; object-fit: cover;
    border-radius: 5px; transition: transform 0.3s;
}
.gallery-img:hover { transform: scale(1.02); }

/* --- FORMS & INPUTS --- */
.form-group { margin-bottom: 15px; text-align: left; }
input, select, textarea {
    width: 100%; padding: 10px;
    border: 1px solid #ddd; border-radius: 5px; font-family: inherit;
}
.bank-card-bca {
    background: linear-gradient(45deg, #1c2bca, #5d85db);
    color: white; padding: 20px;
    border-radius: 10px; margin-bottom: 15px; position: relative; overflow: hidden;
}
.bank-card-bca p { color: #eee; margin: 5px 0; text-align: left; }
.copy-btn {
    background-color: rgba(255,255,255,0.2);
    color: white; border: 1px solid white;
    padding: 5px 15px; border-radius: 4px;
    cursor: pointer; font-size: 0.8rem; margin-top: 10px;
}
.bank-card-bni {
    background: linear-gradient(45deg, #e95613, #e09d44);
    color: white; padding: 20px;
    border-radius: 10px; margin-bottom: 15px; position: relative; overflow: hidden;
}
.bank-card-bni p { color: #eee; margin: 5px 0; text-align: left; }
.copy-btn {
    background-color: rgba(255,255,255,0.2);
    color: white; border: 1px solid white;
    padding: 5px 15px; border-radius: 4px;
    cursor: pointer; font-size: 0.8rem; margin-top: 10px;
}
/* --- MUSIC CONTROL --- */
.music-control {
    position: fixed; bottom: 20px; right: 20px;
    background-color: white; width: 40px; height: 40px;
    border-radius: 50%; display: flex;
    justify-content: center; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 100; cursor: pointer; border: 1px solid #ddd;
}
.music-anim { animation: spin 3s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- TOAST --- */
#toast {
    visibility: hidden; min-width: 250px;
    background-color: #333; color: #fff;
    text-align: center; border-radius: 5px; padding: 16px;
    position: fixed; z-index: 10000; left: 50%; bottom: 30px;
    transform: translateX(-50%); font-size: 14px;
}
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

/* --- RSVP LIST DISPLAY STYLES --- */
.rsvp-card-display {
    background: white;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.rsvp-card-display:hover { transform: translateX(5px); }
.rsvp-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px; border-bottom: 1px dashed #eee; padding-bottom: 5px;
}
.rsvp-name { font-weight: bold; color: #333; font-size: 1rem; }
.rsvp-status {
    font-size: 0.8rem; padding: 2px 8px; border-radius: 12px;
    display: flex; align-items: center; gap: 4px;
}
.status-present { background-color: #d4edda; color: #155724; }
.status-absent { background-color: #f8d7da; color: #721c24; }
.rsvp-message { font-style: italic; color: #555; font-size: 0.9rem; line-height: 1.4; }
.rsvp-date { text-align: right; margin-top: 5px; color: #999; font-size: 0.7rem; }

footer { margin-top: 50px; font-size: 0.8rem; color: #888; padding-bottom: 80px; }

/* --- ADMIN PAGE SPECIFIC --- */
body.admin-body { background-color: #f4f4f4; padding: 20px; }
.admin-container {
    max-width: 800px; margin: 0 auto; background: white;
    padding: 30px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.guest-list-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.guest-list-table th, .guest-list-table td {
    padding: 12px; text-align: left; border-bottom: 1px solid #ddd;
}
.guest-list-table th { background-color: var(--primary-color); color: white; }
.action-btn-group { display: flex; gap: 5px; }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
.btn-danger { background-color: #dc3545; }
.btn-success { background-color: #28a745; }