html {
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #f7f4ef 0%, #eee8df 45%, #e7dfd4 100%);
    color: #35322f;
    font-family: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

.wedding-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 18px;
}

.wedding-card {
    width: 100%;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(80, 70, 60, 0.12);
    border-radius: 28px;
    padding: 52px 48px;
    box-shadow: 0 22px 60px rgba(60, 50, 40, 0.10);
    backdrop-filter: blur(12px);
}

.wedding-brand {
    text-align: center;
    margin-bottom: 34px;
}

    .wedding-brand h1 {
        margin: 0;
        font-size: clamp(2.6rem, 6vw, 4.6rem);
        font-weight: 400;
        letter-spacing: -0.04em;
    }

    .wedding-brand .subtitle {
        margin-top: 12px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.78rem;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        color: #8a8177;
    }

.wedding-divider {
    width: 56px;
    height: 1px;
    margin: 26px auto;
    background: #b5aa9c;
}

.wedding-text {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.12rem;
    line-height: 1.8;
    color: #5b554f;
}

.wedding-actions {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.wedding-button {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    background: #48433d;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

    .wedding-button:hover {
        background: #292622;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 8px 22px rgba(40, 35, 30, 0.16);
    }

.wedding-button-secondary {
    background: transparent;
    color: #48433d;
    border: 1px solid #b8aea3;
}

    .wedding-button-secondary:hover {
        background: #f1ece5;
        color: #292622;
    }

.wedding-form {
    margin-top: 30px;
}

.form-group-wedding {
    margin-bottom: 22px;
}

    .form-group-wedding label {
        display: block;
        margin-bottom: 8px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #716960;
    }

.form-control-wedding {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d6cec4;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    color: #302d29;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .form-control-wedding:focus {
        border-color: #8f8478;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(120, 108, 95, 0.08);
    }

textarea.form-control-wedding {
    min-height: 120px;
    resize: vertical;
}

.attendance-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.attendance-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.attendance-option label {
    width: 100%;
    padding: 15px;
    border: 1px solid #d3cbc1;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.58);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.93rem;
    letter-spacing: 0;
    text-transform: none;
    color: #4e4842;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .attendance-option label:hover {
        background: #f4efe9;
    }

.attendance-option input:checked + label {
    background: #48433d;
    border-color: #48433d;
    color: white;
    transform: translateY(-1px);
}

.validation-summary-errors {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f7e8e6;
    color: #8b4139;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

.validation-summary-valid {
    display: none;
}

.wedding-footer {
    margin-top: 34px;
    text-align: center;
    font-size: 0.96rem;
    color: #857d74;
}

.success-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 22px;
    border: 1px solid #aaa095;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.6rem;
    color: #655e57;
}

@media (max-width: 650px) {

    .wedding-page {
        padding: 18px 12px;
        align-items: flex-start;
    }

    .wedding-card {
        margin-top: 14px;
        padding: 36px 22px;
        border-radius: 22px;
    }

    .attendance-choice {
        grid-template-columns: 1fr;
    }

    .wedding-text {
        font-size: 1.03rem;
    }
}

.admin-page {
    min-height: 100vh;
    padding: 42px 20px;
    background: radial-gradient(circle at top, #f7f4ef 0%, #eee8df 45%, #e7dfd4 100%);
    font-family: Arial, Helvetica, sans-serif;
}

.admin-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-kicker {
    margin-bottom: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: #8a8177;
}

.admin-header h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #35322f;
}

.admin-header p {
    margin: 8px 0 0;
    color: #777067;
    font-size: 0.95rem;
}

.admin-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #c8beb3;
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
    color: #5b554f;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.2s ease;
}

    .admin-logout:hover {
        background: #fff;
        color: #292622;
        transform: translateY(-1px);
    }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.admin-stat-card {
    padding: 22px;
    border: 1px solid rgba(90, 80, 70, 0.10);
    border-radius: 20px;
    background: rgba(255,255,255,0.76);
    box-shadow: 0 12px 34px rgba(60,50,40,0.06);
}

.admin-stat-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #827a71;
}

.admin-stat-card strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: #3b3733;
}

.admin-stat-positive {
    color: #55735f !important;
}

.admin-stat-negative {
    color: #9b5d56 !important;
}

.admin-panel {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid rgba(90, 80, 70, 0.10);
    border-radius: 22px;
    background: rgba(255,255,255,0.78);
    box-shadow: 0 12px 34px rgba(60,50,40,0.06);
}

.admin-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px auto;
    gap: 14px;
    align-items: end;
}

    .admin-filters label {
        display: block;
        margin-bottom: 7px;
        font-size: 0.72rem;
        letter-spacing: 0.10em;
        text-transform: uppercase;
        color: #80786f;
    }

.admin-input,
.admin-select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d5ccc1;
    border-radius: 13px;
    background: #fff;
    color: #3a3632;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .admin-input:focus,
    .admin-select:focus {
        border-color: #95897d;
        box-shadow: 0 0 0 4px rgba(120,108,95,0.08);
    }

.admin-button {
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    background: #48433d;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

    .admin-button:hover {
        background: #292622;
        transform: translateY(-1px);
    }

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

    .admin-table-header h2 {
        margin: 0;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.6rem;
        font-weight: 400;
        color: #3c3834;
    }

    .admin-table-header p {
        margin: 5px 0 0;
        color: #8a8279;
        font-size: 0.86rem;
    }

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

    .admin-table th {
        padding: 13px 14px;
        border-bottom: 1px solid #ddd5cc;
        text-align: left;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #8b837a;
        font-weight: 600;
    }

    .admin-table td {
        padding: 15px 14px;
        border-bottom: 1px solid #eee8e2;
        color: #4c4742;
        font-size: 0.93rem;
        vertical-align: middle;
    }

    .admin-table tr:last-child td {
        border-bottom: 0;
    }

.admin-guest {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ece5dd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6a625a;
    font-size: 0.76rem;
    font-weight: 700;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-badge-present {
    background: #e8f0ea;
    color: #4e6d57;
}

.admin-badge-absent {
    background: #f3e7e5;
    color: #965b55;
}

.admin-muted {
    color: #999087;
}

.admin-empty {
    padding: 36px !important;
    text-align: center;
    color: #948b82 !important;
}

@media (max-width: 800px) {

    .admin-page {
        padding: 24px 12px;
    }

    .admin-header {
        flex-direction: column;
    }

        .admin-header h1 {
            font-size: 2rem;
        }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-button {
        width: 100%;
    }
}

.admin-delete-button {
    padding: 8px 14px;
    border: 1px solid #d8b8b4;
    border-radius: 999px;
    background: #fff7f6;
    color: #9b5d56;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

    .admin-delete-button:hover {
        background: #f3e7e5;
        border-color: #c99d97;
        color: #7f4741;
    }