body {
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/kytky.jpeg");
    background-size: cover;
    background-position: center;
    filter: blur(10px); /* Increase for more blur */
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.invitation-container {
    width: 100%;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.invitation-card {
    background: rgba(128, 143, 117, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    /*box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);*/
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
}

.invitation-title {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    /*text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);*/
    font-family: "Bodoni Moda", serif;
    text-shadow: #0c5a00 3px 0 8px, #0c5a00 -3px 0 8px;
}

.extra_text {
    display: inline-block;
    font-family: "Cedarville Cursive", cursive;
    font-size: 1.6rem;
    transform: rotate(-24deg) translate(-41px, -4px);
    vertical-align: middle;
    padding: 0.1rem 0.5rem;
    letter-spacing: 0.03rem;
    font-weight: 400;
    position: absolute;
}

@media (min-width: 670px) {
    .mobile-break {
        display: none !important;
    }
}

.event-details {
    margin-bottom: 40px;
}

h1 {
    font-size: 1.8rem;
}

.shadow-text {
    text-align: center;
    font-family: "Bodoni Moda", serif;
    text-shadow: #0c5a00 3px 0 8px, #0c5a00 -3px 0 8px;
}

.event-details {
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

/* Summary box styles */
.summary-box {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-count {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-count-extra {
    font-size: 0.8rem;
}

.summary-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

.detail-item {
    padding: 20px;
    background: rgb(255 255 255 / 19%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    align-items: center;
}

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

@media (max-width: 500px) {
    .detail-item {
        padding: 5px 20px;
    }

    .details-grid {
        gap: 10px;
    }
}

.detail-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.detail-item i {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
}

.detail-item p {
    margin: 10px 0;
    color: white;
}

.detail-item span {
    font-weight: bold;
}

.detail-item a {
    color: white;
    transition: opacity 0.3s ease;
}

.detail-item a:hover {
    opacity: 0.8;
}

.rsvp-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rsvp-form h3 {
    text-align: center;
    color: white;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: white;
    font-size: 1.1rem;
}

.rsvp-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.rsvp-btn {
    flex: 1;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    font-weight: bold;
}

.rsvp-yes {
    background: rgba(46, 204, 113, 0.2);
}

.rsvp-yes:hover {
    background: rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

.rsvp-no {
    background: rgba(231, 76, 60, 0.2);
}

.rsvp-no:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

.rsvp-maybe {
    background: rgba(75, 75, 75, 0.2);
}

.rsvp-maybe:hover {
    background: rgba(75, 75, 75, 0.3);
    transform: translateY(-2px);
}

/* Disabled button styles */
.rsvp-btn:disabled,
.rsvp-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

.rsvp-yes:disabled,
.rsvp-yes.disabled {
    background: rgba(46, 204, 113, 0.1);
}

.rsvp-no:disabled,
.rsvp-no.disabled {
    background: rgba(231, 76, 60, 0.1);
}

.form-group input[type="text"] {
    width: calc(100% - 24px);
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: white;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

/* Flash messages */
.flash-message {
    padding: 15px 20px;
    border-radius: 10px;
    max-width: 800px;
    width: 75vw;
    text-align: center;
    color: white;
    font-weight: bold;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
    /* Position fixed to float above content */
    position: fixed;
    top: 20px;
    z-index: 1000;
    overflow: hidden;
}

/* Progress bar for flash messages */
.flash-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0 0 10px 10px;
    transition-duration: 1s;
    animation-name: progressBarDown;
    animation-duration: 5s;
    animation-timing-function: linear;
}

.flash-success {
    background: rgba(46, 204, 113, 0.6);
}

.flash-error {
    background: rgba(231, 76, 60, 0.6);
}

.flash-warning {
    background: rgba(241, 196, 15, 0.6);
}

.flash-info {
    background: rgba(52, 152, 219, 0.6);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes progressBarDown {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Class to apply fadeOut animation */
.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards !important;
}

/* Submissions table styles */
.submissions-table-container {
    margin-bottom: 30px;
    overflow-x: auto;
    /* Allow vertical overflow for dropdowns */
    overflow-y: visible;
}

.submissions-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    overflow: visible;
}

.submissions-table th,
.submissions-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.submissions-table th {
    background: rgba(255, 255, 255, 0.15);
    font-weight: bold;
}

.submissions-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.actions-column {
    text-align: right !important;
}

svg {
    height: 1.2rem;
    width: 1.2rem;
}

.attending-yes {
    color: #2ecc71;
    font-weight: bold;
}

.attending-no {
    color: #e74c3c;
    font-weight: bold;
}

.attending-maybe {
    color: #dedede;
    font-weight: bold;
}

.no-submissions {
    text-align: center;
    padding: 30px;
    font-style: italic;
}

.add-submission-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.add-submission-form h2 {
    margin-bottom: 20px;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-link a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.copy-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-link-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.copy-link-btn:active {
    transform: translateY(0);
}

/* More menu styles */
.more-menu-container {
    position: relative;
    display: inline-block;
}

.more-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.more-menu-btn:active {
    transform: translateY(0);
}

.more-menu-dropdown {
    background: rgba(128, 143, 117, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    display: none;
}

.more-menu-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* Extra persons controls */
.extra-persons-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.extra-persons-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.extra-persons-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.extra-persons-btn:active:not(:disabled) {
    transform: translateY(0);
}

.extra-persons-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-btn {
    color: #2ecc71;
}

.remove-btn {
    color: #e74c3c;
}

.extra-persons-count {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.extra-persons-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Menu divider */
.menu-divider {
    margin: 10px 0;
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* Remove guest controls */
.remove-guest-controls {
    display: flex;
    justify-content: center;
}

.remove-guest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.remove-guest-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

.remove-guest-btn:active {
    transform: translateY(0);
}

/* Copy link button in menu */
.copy-link-controls {
    display: flex;
    justify-content: center;
}

.copy-link-btn-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.copy-link-btn-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.copy-link-btn-menu:active {
    transform: translateY(0);
}

/* Attending status controls */
.attending-status-controls {
    display: flex;
    justify-content: center;
}

.attending-status-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.attending-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.attending-btn.attending-yes {
    background: rgba(46, 204, 113, 0.2);
}

.attending-btn.attending-yes:hover {
    background: rgba(46, 204, 113, 0.3);
    transform: translateY(-2px);
}

.attending-btn.attending-maybe {
    background: rgba(75, 75, 75, 0.2);
}

.attending-btn.attending-maybe:hover {
    background: rgba(75, 75, 75, 0.3);
    transform: translateY(-2px);
}

.attending-btn.attending-no {
    background: rgba(231, 76, 60, 0.2);
}

.attending-btn.attending-no:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

.attending-btn:active {
    transform: translateY(0);
}

.attending-btn.active {
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

.attending-btn.attending-yes.active {
    background: rgba(46, 204, 113, 0.4);
}

.attending-btn.attending-maybe.active {
    background: rgba(75, 75, 75, 0.4);
}

.attending-btn.attending-no.active {
    background: rgba(231, 76, 60, 0.4);
}

@media (max-width: 600px) {
    .invitation-card {
        padding: 20px;
    }

    .rsvp-buttons {
        flex-direction: column;
    }

    .rsvp-btn {
        width: 100%;
    }

    .flash-message {
        margin: 0 10px 20px;
        padding: 10px 15px;
    }

    .submissions-table th,
    .submissions-table td {
        padding: 10px;
    }
}
