:root {
    --background-color: var(--gradient-primary-end);
    --shape-color: #d1fae5;
    --border-color: var(--gradient-primary-end);
    --button-color: var(--button-hover-color);
    --button-hover-color: #059669;
    --text-p-color: #e3e3e3;
    --text-h-color: #ffffff;
    --text-btn-color: #ffffff;
    --overlay-bg-color: #b3b0b03b;
    --shadow-color: #00000018;
    --white-color: #ffffff;
    --light-gray: #f1f1f1;
    --lighter-gray: #f9f9f9;
    --primary-text-color: var(--gradient-primary-end);
    --secondary-text-color: #1f2937;
    --border-light: #e5e7eb;
    --border-focus: var(--button-hover-color);
    --shadow-light: rgba(6, 78, 59, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --error-color: #ef4444;
    --help-color: #6b7280;
    --disabled-color: #9ca3af;
    --gradient-start: #f0fdf4;
    --gradient-end: #ffffff;
    --gradient-primary-start: var(--button-hover-color);
    --gradient-primary-end: #059669;
    --gradient-accent-start: var(--button-hover-color);
    --gradient-accent-end: var(--gradient-primary-end);

    --wave1: #059669;
    --wave2: #06ca8c;
    --wave3: #fff;
}

body {
    color: var(--text-p-color);
    font-family: 'Poppins';
}

nav {
    background-color: var(--shape-color) !important;
}

.btn,
#playPauseBtn {
    background-color: var(--button-color);
    color: var(--text-btn-color);
    border-color: var(--button-color);
}

.btn:hover,
#playPauseBtn:hover {
    background-color: var(--button-hover-color);
    border-color: var(--button-color);
}

.btn:active,
#playPauseBtn:active {
    background-color: var(--button-hover-color) !important;
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    -moz-transform: scale(0.95);
    -ms-transform: scale(0.95);
    -o-transform: scale(0.95);
}

.main-background h2 {
    color: var(--text-p-color);
    font-family: 'Cinzel';
    font-size: 24px;
}

.main-background h3 {
    font-family: 'Great Vibes';
    color: var(--text-h-color);
}

#frist-layer .the-box {
    border: none !important;
    background-color: transparent !important;
}

#frist-layer .the-box img {
    filter: drop-shadow(2px 3px 6px var(--shadow-color));
    -webkit-filter: drop-shadow(2px 3px 6px var(--shadow-color));
}

#frist-layer .the-box h2 {
    color: var(--text-p-color);
    font-family: 'Cinzel';
    font-size: 14px;
}

#frist-layer .the-box h3 {
    font-family: 'Great Vibes';
    font-size: 40px !important;
    font-weight: 400;
    color: var(--text-h-color);
}

#frist-layer .the-box .box-invitation div {
    font-weight: 400;
    color: var(--text-h-color);
}

#frist-layer .the-box .box-invitation p {
    color: var(--text-p-color);
}

#frist-layer .the-box .overlay-top {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    transform: translateY(-100%);
    -webkit-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
}

#frist-layer .the-box .overlay-bottom {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 100%;
    transform: translateY(100%);
    -webkit-transform: translateY(100%);
    -moz-transform: translateY(100%);
    -ms-transform: translateY(100%);
    -o-transform: translateY(100%);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    object-position: center center;
}

.flower-br {
    position: absolute;
    bottom: 0px;
    right: 0px;
    z-index: -1;
}

.flower-tl {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: -1;
}

#opening img.profile {
    filter: drop-shadow(2px 3px 6px var(--shadow-color));
    -webkit-filter: drop-shadow(2px 3px 6px var(--shadow-color));
}

#opening h1 {
    color: var(--text-h-color);
    font-family: 'Great Vibes';
    font-weight: 500;
}

#opening .the-date {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-p-color);
}

#opening .countdown .the-box {
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
}

#bride .the-profile {
    background-color: var(--shape-color);
    padding: 8px;
    width: 210px;
    border-radius: 40%;
    -webkit-border-radius: 40%;
    -moz-border-radius: 40%;
    -ms-border-radius: 40%;
    -o-border-radius: 40%;
}

#bride .profile {
    background-color: var(--shape-color);
    border: 1.4px solid var(--background-color);
    padding-top: 20px;
    border-radius: 40%;
    -webkit-border-radius: 40%;
    -moz-border-radius: 40%;
    -ms-border-radius: 40%;
    -o-border-radius: 40%;
    width: 100%;
}

#bride h2 {
    color: var(--text-h-color);
    font-size: 22px;
    font-family: 'Merriweather';
}

#the-doa .bg-white {
    background-color: var(--background-color) !important;
}

/* event layer */
.event-wrapper {
    max-width: 600px;
    width: 100%;
}

.event-card {
    background: var(--shape-color);
    color: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    position: relative;
    height: auto;
    min-height: 180px;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

.event-inner {
    display: flex;
    width: 100%;
    height: 100%;
}

.event-title-vertical {
    background: var(--button-color);
    color: var(--text-btn-color);
    font-size: 1.2rem;
    font-weight: bold;
    padding: 20px 15px;
    border-radius: 15px 0 0 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    white-space: nowrap;
    height: auto;
    flex: 0 0 auto;
}

.event-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vertical-text {
    transform: rotate(180deg);
    white-space: nowrap;
    letter-spacing: 1px;
}

.date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
}

.month-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.month {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.year {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.day-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--button-color);
    line-height: 1;
    margin: 5px 0;
}

.event-day,
.event-date,
.event-time,
.event-location {
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.event-day {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.event-time {
    font-size: 1rem;
}

.event-location {
    font-size: 0.95rem;
    line-height: 1.4;
}

.event-action {
    margin-top: 10px;
}

.event-button {
    background-color: var(--button-color);
    color: var(--text-btn-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 8px 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.event-button:hover {
    color: var(--text-btn-color);
    background-color: var(--button-hover-color);
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .event-card {
        min-height: 160px;
    }

    .event-title-vertical {
        padding: 15px 10px;
        font-size: 1rem;
    }

    .day-number {
        font-size: 2rem;
    }

    .month {
        font-size: 0.9rem;
    }

    .year {
        font-size: 0.7rem;
    }
}

#mini-maps h2 {
    color: var(--text-h-color);
}

#walimah {
    background-color: var(--button-hover-color);
}

#walimah h2 {
    color: var(--text-btn-color);
    font-size: 24;
}

#walimah p {
    font-size: 11px;
    color: var(--text-btn-color);
}

#love-story h2 {
    color: var(--text-h-color);
    font-family: 'Playfair Display';
}

#love-story .card {
    background-color: var(--shape-color) !important;
    color: var(--background-color);
    border: 1px solid var(--border-color);
}

/* bank layer */
#bank h2 {
    color: var(--text-h-color);
    font-weight: 500;
    font-size: 32px;
    font-family: 'Cinzel', serif;
}

#bank .accordion-button.gift-button {
    background-color: var(--button-color);
    color: #f1f1f1 !important;
}

#bank .accordion-button.gift-button.collapsed {
    background-color: var(--button-hover-color);
    color: #f9f9f9;
}

/* bank layer */

/* rsvp layer */
#rsvp .card {
    background-color: var(--shape-color) !important;
}

#rsvp h3,
#rsvp label,
#rsvp small.text-muted {
    color: var(--background-color) !important;
}

#rsvp .btn.btn-success {
    background-color: var(--button-color);
    color: var(--text-btn-color);
    font-weight: bold;
    border: 2px solid var(--button-color);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Efek hover */
#rsvp .btn.btn-success:hover {
    background-color: var(--button-hover-color);
    color: var(--text-btn-color);
    border-color: var(--button-hover-color);
    box-shadow: 2px 6px 12px rgba(0, 0, 0, 0.2);
}

/* Efek saat tombol ditekan */
#rsvp .btn.btn-success:active {
    transform: scale(0.95);
    box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.15);
}

/* rsvp layer */

/* chat-room layer */
#chat-room .card {
    background-color: var(--shape-color) !important;
}

#chat-room h2 {
    color: var(--background-color);
}

#chat-room label {
    color: var(--background-color);

}

#chat-room .btn.btn-primary {
    background-color: var(--button-color);
    color: var(--text-btn-color);
    font-weight: bold;
    border: 2px solid var(--button-color);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Efek hover */
#chat-room .btn.btn-primary:hover {
    background-color: var(--text-btn-color);
    color: var(--button-color);
    border-color: var(--text-btn-color);
    box-shadow: 2px 6px 12px rgba(0, 0, 0, 0.2);
}

/* Efek saat tombol ditekan */
#chat-room .btn.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.15);
}

#chat-room .the-chat {
    background-color: var(--background-color) !important;
    color: var(--text-p-color);
}

/* chat-room layer */


#closing h2 {
    font-family: 'Great Vibes';
    color: var(--text-h-color);
    font-size: 40px;
    font-weight: 500;
}

#closing h3 {
    color: var(--text-p-color);
    font-size: 17px;
    font-weight: 400;
    font-family: 'Merriweather';

}

/* Universal Enhanced Styling for RSVP and Chat Room Components */
/* Compatible with any wedding theme - Generic selectors */

/* Universal Form Container */
.form-container {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid #d1fae5;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(6, 78, 59, 0.1);
    padding: 2.5rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--button-hover-color), var(--gradient-primary-end));
}

.form-container::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Universal Form Title */
.form-title {
    color: var(--gradient-primary-end);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    font-family: 'Cinzel', serif;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--button-hover-color), var(--gradient-primary-end));
    border-radius: 2px;
}

/* Universal Form Groups */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    color: var(--gradient-primary-end);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #1f2937;
}

.form-control:focus {
    outline: none;
    border-color: var(--button-hover-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background-color: #f0fdf4;
}

.form-control:hover {
    border-color: var(--gradient-primary-end);
}

/* Universal Select Styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Universal Textarea */
.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Universal Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--button-hover-color), #059669);
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #059669, var(--button-hover-color));
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Universal Form Rows */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Universal Radio/Checkbox Groups */
.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
    flex: 1;
    min-width: 120px;
}

.radio-item:hover {
    border-color: var(--gradient-primary-end);
    background-color: #f0fdf4;
}

.radio-item input[type="radio"],
.radio-item input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--button-hover-color);
}

.radio-item:has(input:checked) {
    border-color: var(--button-hover-color);
    background-color: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Universal Error Messages */
.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Universal Help Text */
.form-help {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Universal Chat Display */
.chat-display {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.chat-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.chat-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-light) !important;
}

.chat-content {
    flex: 1;
}

.chat-name {
    font-weight: 700;
    color: var(--gradient-primary-end);
    margin-bottom: 0.25rem;
}

.chat-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 0.5rem;
    color: white;
    margin-left: 0.5rem;
}

.chat-badge.present {
    background-color: var(--button-hover-color);
}

.chat-badge.absent {
    background-color: #6b7280;
}

.chat-text {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }
}

footer{
    color: #111;
}