body {
    background-color: #FFF8EC;
}

.content-wrapper {
    max-width: 40rem;
}

.login-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.required-label {
    font-weight: bold;
}

.required-asterisk {
    color: #dc3545;
    margin-left: 2px;
}

.top-bar {
    width: 100%;
    background-color: #FFF8EC;
}

.guest-top-bar {
    position: relative;
}

.guest-top-bar-inner {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
    padding: 0.5rem 11rem 0.5rem 0.5rem;
}

.top-bar-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.guest-top-bar-btn {
    padding: 0.35rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-width: 1px;
}

.btn-outline-guest {
    color: #5b7a99;
    border-color: #5b7a99;
}

.btn-outline-guest:hover,
.btn-outline-guest:focus,
.btn-outline-guest:active {
    color: #ffffff;
    background-color: #5b7a99;
    border-color: #5b7a99;
}

.guest-nav .navbar-toggler {
    border-color: #5b7a99;
    padding: 0.25rem 0.5rem;
}

.guest-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(91, 122, 153, 0.35);
}

.guest-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235b7a99' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.guest-nav .navbar-nav {
    gap: 0.25rem;
}

.guest-nav .nav-link {
    color: #5b7a99;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
}

.guest-nav .nav-link:hover {
    background-color: rgba(91, 122, 153, 0.1);
}

.guest-nav .nav-link.active {
    color: #ffffff;
    background-color: #5b7a99;
}

@media (max-width: 991.98px) {
    .guest-nav .navbar-collapse {
        background-color: #ffffff;
        border: 1px solid #cdd9e2;
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }
}

.blog-wrapper {
    max-width: 80%;
}

.orga-login-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.blog-thumbnail {
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
    cursor: pointer;
}

.wedding-crew-thumbnail {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
}

.wedding-crew-thumbnail-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.wedding-crew-photo {
    width: clamp(90px, 25vw, 160px);
    height: clamp(90px, 25vw, 160px);
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #cdd9e2;
}

.filter-header {
    position: relative;
    white-space: nowrap;
}

.filter-header-content {
    display: inline-flex;
    align-items: center;
}

.filter-toggle,
.sort-toggle {
    text-decoration: none;
    color: inherit;
    font-weight: inherit;
    white-space: nowrap;
}

.page-size-select {
    max-width: 8rem;
}

.filter-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0.75rem;
    font-weight: normal;
    white-space: normal;
}

.filter-options .form-check {
    text-align: left;
}

.table-scroll-wrapper {
    max-height: 70vh;
    overflow-y: auto;
}

.table-scroll-wrapper thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: #fff;
}

.sticky-col-start,
.sticky-col-end {
    position: sticky;
    z-index: 2;
    background-color: #fff;
}

.sticky-col-start {
    left: 0;
}

.sticky-col-end {
    right: 0;
}

.table-scroll-wrapper thead th.sticky-col-start,
.table-scroll-wrapper thead th.sticky-col-end {
    z-index: 4;
}

.per-guest-list li {
    white-space: nowrap;
}

.address-cell div {
    white-space: nowrap;
}

.countdown-card {
    background: linear-gradient(180deg, #ffffff 0%, #fdf6e8 100%);
    border: 1px solid #e2d6b8;
}

.countdown-title {
    color: #5b7a99;
    letter-spacing: 0.04em;
}

.countdown-title .bi-heart-fill {
    color: #c98a8a;
    font-size: 0.8em;
    vertical-align: middle;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.countdown-unit {
    background: linear-gradient(180deg, #ffffff 0%, #f4ede0 100%);
    color: #5b7a99;
    border: 1px solid #cdd9e2;
    border-radius: 12px;
    min-width: 4.75rem;
    padding: 0.85rem 0.5rem;
    box-shadow: 0 2px 6px rgba(91, 122, 153, 0.15);
    animation: countdown-pulse 2.4s ease-in-out infinite;
}

.countdown-unit:nth-child(1) {
    animation-delay: 0s;
}

.countdown-unit:nth-child(3) {
    animation-delay: 0.2s;
}

.countdown-unit:nth-child(5) {
    animation-delay: 0.4s;
}

.countdown-unit:nth-child(7) {
    animation-delay: 0.6s;
}

.countdown-value {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.85rem;
    font-weight: bold;
    line-height: 1;
    color: #3f5b78;
    white-space: nowrap;
}

.countdown-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.35rem;
    color: #7a7a72;
    white-space: nowrap;
}

.countdown-separator {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.6rem;
    font-weight: bold;
    color: #cdaf5f;
    align-self: center;
    margin-top: -0.5rem;
}

@keyframes countdown-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(91, 122, 153, 0.15);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 14px rgba(91, 122, 153, 0.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .countdown-unit {
        animation: none;
    }
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background-color: #5b7a99;
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus {
    background-color: #3f5b78;
    color: #ffffff;
}

.back-to-top-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rich-text-content ol {
    padding-left: 1.5em;
    counter-reset: list-0 list-1 list-2;
}

.rich-text-content li {
    list-style-type: none;
    padding-left: 1.5em;
}

.rich-text-content li > .ql-ui::before {
    display: inline-block;
    margin-left: -1.5em;
    margin-right: 0.3em;
}

.rich-text-content li[data-list="bullet"] > .ql-ui::before {
    content: "\2022";
}

.rich-text-content li[data-list="checked"] > .ql-ui::before {
    content: "\2611";
}

.rich-text-content li[data-list="unchecked"] > .ql-ui::before {
    content: "\2610";
}

.rich-text-content li[data-list="ordered"] {
    counter-increment: list-0;
}

.rich-text-content li[data-list="ordered"] > .ql-ui::before {
    content: counter(list-0, decimal) ". ";
}

.rich-text-content li.ql-indent-1 {
    padding-left: 4.5em;
}

.rich-text-content li[data-list="ordered"].ql-indent-1 {
    counter-increment: list-1;
}

.rich-text-content li[data-list="ordered"].ql-indent-1 > .ql-ui::before {
    content: counter(list-1, lower-alpha) ". ";
}

.rich-text-content li.ql-indent-2 {
    padding-left: 7.5em;
}

.rich-text-content li[data-list="ordered"].ql-indent-2 {
    counter-increment: list-2;
}

.rich-text-content li[data-list="ordered"].ql-indent-2 > .ql-ui::before {
    content: counter(list-2, lower-roman) ". ";
}

@media (max-width: 576px) {
    .blog-wrapper {
        max-width: 90%;
    }

    .guest-top-bar-inner {
        max-width: 90%;
        padding-right: 8.5rem;
    }

    .countdown {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0.15rem;
    }

    .countdown-unit {
        min-width: 55px;
        flex: 0 1 auto;
        padding: 0.5rem 0.2rem;
    }

    .countdown-value {
        font-size: 1rem;
    }

    .countdown-label {
        font-size: 0.5rem;
        letter-spacing: 0.02em;
        margin-top: 0.2rem;
    }

    .countdown-separator {
        font-size: 1rem;
        margin-top: -0.2rem;
    }
}
