@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/RobotoSerif-Regular.ttf') format('truetype');
    font-display: swap;
}

/* Material Design Dark Theme Variables */
:root {
    --primary-color: #6200ea;
    --primary-dark: #3700b3;
    --surface-color: #121212;
    --surface-light: #1e1e1e;
    --background-color: #181818;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: rgba(255, 255, 255, 0.12);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --error-color: #ff4444;
    --success-color: #4CAF50;
    --success-color-dark: #317033;
    --warning-color: #ff9800;
    --transition-speed: 0.3s;
}

/* Theme Switcher */
[data-theme="light"] {
    --primary-color: #6200ea;
    --primary-dark: #3700b3;
    --surface-color: #ffffff;
    --surface-light: #f5f5f5;
    --background-color: #f8f9fa;
    --text-primary: #121212;
    --text-secondary: #757575;
    --border-color: rgba(0, 0, 0, 0.12);
}

/* Base Styles */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    font-family: 'Roboto';
    margin: 0;
    padding: 16px;
    background-color: var(--background-color);
    color: var(--text-primary);
    transition: background-color var(--transition-speed) ease;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    background-color: var(--surface-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Form Styles */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.font-style {
    font-family: 'Roboto';
}

.form-section {
    background-color: var(--surface-light);
    padding: 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.music-wishes-container input,
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--surface-light);
    color: var(--text-primary);
    font-size: 16px;
    width: calc(100% - 24px);
    transition: border-color var(--transition-speed) ease;
}

.music-wishes-container input:focus,
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.music-wishes-container button,
.rsvp-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
}

.music-wishes-container button:disabled,
.rsvp-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.header-img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

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

.music-wishes-btn {
    background-color: var(--primary-color);
    font-family: 'Roboto';
    color: white;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    width: 70px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.submit-btn-container {
    display: flex;
    justify-content: center;
}

.display-flex {
    display: flex;
}

.margin-top-5 {
    margin-top: 5px;
}

.submit-btn {
    background-color: var(--primary-color);
    font-family: 'Roboto';
    color: white;
    box-shadow: var(--shadow-sm);
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-left: 20px;
}

.opacity-0 {
    transition: opacity 0.3s ease-in-out;
}

.opacity-0_3 {
    opacity: 0.5;
}

.border-red {
    border: 1px solid red !important;
}

.music-wishes-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 12px;
    font-family: 'Roboto';
}

.music-wishes-btn:hover,
.submit-btn:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.center-content-flex {
    display: flex;
    justify-content: center;
}

.submit-btn-error-message {
    margin-bottom: 0;
    margin-top: -18px;
    font-size: 14px;
    color: var(--error-color);
}

.invite-code-section-input,
.notes-section-text-area {
    margin-top: 10px;
    font-family: 'Roboto';
}

.remove-guest-btn {
    background-color: var(--error-color);
    color: var(--text-primary);
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    align-self: start;
}

[data-theme="dark"] .remove-guest-btn {
    background-color: #ff4444;
    color: white;
}

[data-theme="dark"] .remove-guest-btn:hover:not(:disabled) {
    background-color: #cc3333;
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .remove-guest-btn {
    background-color: #dc2626;
    color: white;
}

[data-theme="light"] .remove-guest-btn:hover:not(:disabled) {
    background-color: #b91c1c;
    box-shadow: var(--shadow-sm);
}

.add-guest-btn-container {
    display: flex;
    flex-direction: column;
}

.add-guest-btn {
    background-color: var(--success-color);
    font-family: 'Roboto';
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    width: 180px;
    align-self: center;
}

.add-guest-btn:hover {
    background-color: var(--success-color-dark);
    box-shadow: var(--shadow-md);
}

.faq-title {
    font-weight: bold;
    margin-bottom: 7px;
}

.faq-text {
    padding-left: 20px;
    margin-top: unset;
}

.margin-top-0 {
    margin-top: 0;
}

.margin-0 {
    margin: 0;
}

.margin-bottom-0 {
    margin-bottom: 0;
}

.map {
    height: 250px;
}

.special-requests {
    min-height: 96px;
    resize: vertical;
}

.guests-container {
    margin-top: 16px;
}

.guest-inputs {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-family: 'Roboto';
}

.guest-inputs input[type="text"] {
    width: 40%;
}

.guest-inputs select {
    width: 50%;
}

.guest-inputs .remove-guest-btn {
    flex: 0 0 auto;
    padding: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    background-color: var(--error-color);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.guest-inputs .remove-guest-btn:hover:not(:disabled) {
    background-color: #cc0000;
}

.hotel-link {
    margin-top: 32px;
    text-align: center;
}

.hotel-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.hotel-link a:hover {
    text-decoration: underline;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 100;
    border: unset;
    background-color: transparent;
    padding: 12px;
    opacity: 0.75;
}

.theme-toggle svg {
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    background-color: #ffffff;
    color: var(--text-primary);
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    opacity: 0.75;
    transition: transform var(--transition-speed) ease;
}

.theme-toggle svg:hover {
    transform: scale(1.1);
}

/* Status Messages */
.status-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.status-message {
    padding: 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
    animation: slideIn var(--transition-speed) ease-out;
    margin-bottom: 10px;
}

.success {
    background-color: var(--success-color);
    color: white;
}

.error {
    background-color: var(--error-color);
    color: white;
}

.warning {
    background-color: var(--warning-color);
    color: white;
}

.close-button {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
    transition: opacity var(--transition-speed);
}

.close-button:hover {
    opacity: 0.8;
}

.divider {
    border-bottom: 2px solid var(--border-color);
    height: 0px;
    border-style: solid;
    border-top: unset;
    border-left: unset;
    border-right: unset;
}

.leaflet-marker-icon::before {
    content: none !important;
}

.altcha {
    background-color: var(--background-color) !important;
}

.sk-chase {
    /* margin-top: 5px; */
    width: 30px;
    height: 30px;
    position: relative;
    animation: sk-chase 2.5s infinite linear both;
}

.sk-chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: sk-chase-dot 2.0s infinite ease-in-out both;
}

.sk-chase-dot:before {
    content: '';
    display: block;
    width: 25%;
    height: 25%;
    background-color: var(--primary-color);
    border-radius: 100%;
    animation: sk-chase-dot-before 2.0s infinite ease-in-out both;
}

.sk-chase-dot:nth-child(1) {
    animation-delay: -1.1s;
}

.sk-chase-dot:nth-child(2) {
    animation-delay: -1.0s;
}

.sk-chase-dot:nth-child(3) {
    animation-delay: -0.9s;
}

.sk-chase-dot:nth-child(4) {
    animation-delay: -0.8s;
}

.sk-chase-dot:nth-child(5) {
    animation-delay: -0.7s;
}

.sk-chase-dot:nth-child(6) {
    animation-delay: -0.6s;
}

.sk-chase-dot:nth-child(1):before {
    animation-delay: -1.1s;
}

.sk-chase-dot:nth-child(2):before {
    animation-delay: -1.0s;
}

.sk-chase-dot:nth-child(3):before {
    animation-delay: -0.9s;
}

.sk-chase-dot:nth-child(4):before {
    animation-delay: -0.8s;
}

.sk-chase-dot:nth-child(5):before {
    animation-delay: -0.7s;
}

.sk-chase-dot:nth-child(6):before {
    animation-delay: -0.6s;
}

@keyframes sk-chase {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot {

    80%,
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot-before {
    50% {
        transform: scale(0.4);
    }

    100%,
    0% {
        transform: scale(1.0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(calc(100% + 20px));
        opacity: 0;
    }

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .status-messages {
        bottom: 20px;
        top: auto;
        right: 20px;
        max-width: calc(100% - 40px);
    }
}
