:root {
    --primary-color: #6f4c2b;
    --primary-hover: #4c321c;
    --accent-color: #b88945;
    --bg-color: #f7f2e8;
    --text-color: #3b2a1d;
    --error-color: #e74c3c;
    --card-bg: #fff;
    --border-color: #e1e8ed;
    --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 20px;
    margin-top: 20px;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.welcome-text {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.5;
}

/* Single Fold Layout - Inspired by Reference */
.single-fold-layout {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4ead8;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Soft ceremony texture for the golden wedding theme */
.daisy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 252, 246, 0.05), rgba(255, 252, 246, 0.08)),
        url('../imagen/fundo-bodas-ouro.png');
    background-size: cover;
    background-position: center;
    opacity: 1;
    filter: saturate(0.98);
    z-index: 0;
    pointer-events: none;
}

.split-container {
    display: flex;
    max-width: 560px;
    width: 100%;
    background: transparent;
    z-index: 10;
    min-height: auto;
}

.popup-animation {
    animation: scaleUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUp {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.photo-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 42px 24px 24px;
    position: relative;
}

.photo-frame {
    width: 100%;
    max-width: 430px;
    aspect-ratio: 1080/1554;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(88, 58, 26, 0.22);
    border: 8px solid rgba(255, 252, 246, 0.92);
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(88, 58, 26, 0.3);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f9f4ea;
    display: block;
}

.aniversariante-nome {
    position: absolute;
    bottom: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 2.22rem;
    color: #8a6636;
    background: #fffaf1;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(125, 86, 40, 0.2);
    text-align: center;
    font-weight: 500;
    font-style: italic;
    white-space: nowrap;
    z-index: 5;
    animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.form-side {
    flex: 1;
    padding: 56px 58px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fbf4e8;
    border-radius: 14px;
    border: 1px solid rgba(179, 128, 62, 0.28);
    box-shadow:
        0 26px 80px rgba(79, 47, 18, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    min-height: auto;
    position: relative;
    overflow: hidden;
}

.form-side::before {
    display: none;
}

.form-side::after {
    display: none;
}

.clean-form {
    position: relative;
    z-index: 2;
}

.invite-header {
    margin-bottom: 28px;
    text-align: center;
}

.couple-art {
    display: block;
    width: min(100%, 360px);
    height: auto;
    margin: 0 auto 18px;
}

.invite-kicker {
    color: #80582f;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-style: italic;
    line-height: 1;
    margin-bottom: 8px;
    transform: none;
}

.couple-name {
    color: #8a5d2d;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.55rem;
    font-style: italic;
    font-weight: 500;
    line-height: 0.95;
    margin: 0 0 14px;
}

.rings-mark {
    display: none;
    height: 54px;
    margin: 0 auto 8px;
    position: relative;
    width: 118px;
}

.ring {
    position: absolute;
    top: 10px;
    width: 58px;
    height: 38px;
    border: 7px solid #c48a35;
    border-radius: 50%;
    box-shadow:
        inset 0 2px 5px rgba(255, 255, 255, 0.72),
        0 5px 10px rgba(80, 50, 20, 0.22);
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.65), transparent 45%);
}

.ring::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid rgba(255, 236, 174, 0.72);
}

.ring-left {
    left: 18px;
    transform: rotate(-17deg);
}

.ring-right {
    right: 18px;
    transform: rotate(17deg);
}

/* Typography matching reference but more elegant/delicate */
.clean-form .form-title {
    color: #78512a;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-family);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-style: normal;
}

.clean-form .welcome-text {
    color: #70563e;
    line-height: 1.6;
    font-size: 1.1rem;
    font-family: 'Lora', 'Times New Roman', serif;
    /* Soft reading font */
}

.clean-form .custom-field label {
    color: #6f4c2b;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
    font-family: var(--font-family);
    /* Keep sans-serif but cleaner */
}

/* Custom form inputs matching reference */
.clean-form .full-width input {
    border: 1px solid #dec7a4 !important;
    border-radius: 8px !important;
    background-color: rgba(255, 253, 248, 0.86) !important;
    color: #3b2a1d !important;
    padding: 16px 16px;
    width: 100%;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-family: 'Lora', serif;
    /* Input text more delicate */
}

.clean-form .full-width input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    font-family: 'Lora', serif;
    font-style: italic;
}

.clean-form .full-width input:focus {
    border-color: #b88945 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(184, 137, 69, 0.18) !important;
    outline: none;
}

/* Error message styling like reference */
.clean-form .alert-error {
    background-color: #fff8ed;
    color: #8a4f17;
    border: 1px solid #ead0a5;
    border-radius: 8px;
    padding: 16px;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    font-family: 'Lora', serif;
}

/* Radio buttons matching reference style */
.clean-form .radio-group {
    display: flex;
    gap: 15px;
}

.clean-form .radio-box {
    flex: 1;
    border: 1px solid #dec7a4;
    border-radius: 8px;
    background-color: #fff;
    padding: 14px;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.clean-form .radio-box:has(input:checked) {
    border-color: #b88945;
    background-color: #fff8ec;
    box-shadow: 0 4px 12px rgba(184, 137, 69, 0.22);
}

.clean-form .radio-box span {
    color: #5f4328;
    font-weight: 500;
    font-family: 'Lora', serif;
    font-size: 1.05rem;
}

.clean-form .radio-box input[type="radio"] {
    accent-color: #b88945;
    width: 18px;
    height: 18px;
    margin-right: 12px;
}

/* Primary Button - Golden wedding theme */
.btn-daisy {
    background: linear-gradient(135deg, #e0bd74 0%, #b1762a 100%);
    color: #fffdf8;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    /* Elegant button text */
    letter-spacing: 0.5px;
    font-size: 1.25rem;
    padding: 18px;
    width: 100%;
    box-shadow: 0 12px 28px -12px rgba(110, 73, 31, 0.75);
    transition: all 0.3s ease;
}

.btn-daisy:hover {
    background: linear-gradient(135deg, #e3c17e 0%, #9b6828 100%);
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -14px rgba(110, 73, 31, 0.8);
}

.btn-daisy:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-daisy-outline {
    background: transparent;
    border: 2px solid #cda565;
    color: #6f4c2b;
    border-radius: 8px;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    padding: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-daisy-outline:hover {
    background: #fff8ec;
    border-color: #b88945;
}

.convite-results {
    margin-bottom: 20px;
}

.convite-card,
.convite-empty,
.convite-suggestion {
    border: 1px solid #dec7a4;
    background: rgba(255, 253, 248, 0.92);
    border-radius: 12px;
}

.convite-card {
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(110, 73, 31, 0.08);
}

.convite-card-header {
    padding: 14px 16px;
    background: #fff8ec;
    border-bottom: 1px solid #ead0a5;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.convite-card-header span,
.convite-suggestion span {
    color: #9b7651;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.convite-card-header strong,
.convite-suggestion strong {
    color: #6f4c2b;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
}

.convite-guests {
    display: flex;
    flex-direction: column;
}

.convite-guest {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid #f0dfc4;
    cursor: pointer;
}

.convite-guest:last-child {
    border-bottom: none;
}

.convite-guest input {
    accent-color: #b88945;
    width: 18px;
    height: 18px;
}

.guest-name {
    color: #3b2a1d;
    font-family: 'Lora', serif;
    font-weight: 600;
}

.guest-type,
.guest-status {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
}

.guest-type {
    background: #f7ead3;
    color: #6f4c2b;
}

.guest-status {
    background: #ecfdf5;
    color: #047857;
}

.convite-guest.is-confirmed {
    opacity: 0.62;
    cursor: not-allowed;
}

.convite-empty {
    color: #70563e;
    font-family: 'Lora', serif;
    padding: 14px 16px;
    text-align: center;
}

.convite-suggestions {
    display: grid;
    gap: 10px;
}

.convite-choice-title {
    color: #6f4c2b;
    font-family: 'Lora', serif;
    font-weight: 700;
    text-align: center;
    padding: 2px 0 4px;
}

.convite-suggestion {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 16px;
    text-align: left;
    transition: all 0.2s ease;
}

.convite-suggestion small {
    color: #7d6650;
    font-family: 'Lora', serif;
    font-size: 0.88rem;
    line-height: 1.35;
}

.convite-suggestion:hover {
    border-color: #b88945;
    box-shadow: 0 8px 18px rgba(110, 73, 31, 0.1);
    transform: translateY(-1px);
}

@media (max-width: 850px) {
    .single-fold-layout {
        align-items: flex-start;
        min-height: 100svh;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 18px 12px;
    }

    .daisy-bg {
        position: fixed;
        min-height: 100svh;
        background-size: 100% auto;
        background-position: top center;
        background-repeat: repeat-y;
    }

    .split-container {
        flex-direction: column;
        background: transparent;
        max-width: 100%;
    }

    .form-side {
        padding: 38px 24px 32px;
        border-radius: 14px;
        min-height: auto;
    }

    .invite-kicker {
        font-size: 1.55rem;
        margin-bottom: 8px;
        transform: none;
    }

    .couple-art {
        width: min(100%, 300px);
        margin-bottom: 16px;
    }

    .couple-name {
        font-size: 2.9rem;
    }

    .clean-form .form-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .single-fold-layout {
        padding: 10px 8px;
    }

    .daisy-bg {
        background-size: 118% auto;
        background-position: top center;
    }

    .form-side {
        padding: 30px 18px 26px;
        border-radius: 10px;
    }

    .couple-art {
        width: min(100%, 260px);
    }
}

@media (max-width: 380px) {
    .daisy-bg {
        background-size: 132% auto;
    }
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 400;
}

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

/* Custom Image Form Styles */
.custom-field {
    font-family: var(--font-family);
}

.custom-field label {
    font-weight: 600;
    color: #4B6077;
    /* Bluish gray text from image */
    font-size: 1.05rem;
    display: inline-block;
    margin-bottom: 8px;
}

.full-width label {
    display: block;
}

.full-width input,
.full-width textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 1rem;
    color: #4a5568;
    transition: all 0.3s ease;
    background-color: #fff;
}

.full-width input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.full-width input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    outline: none;
}

.help-text {
    font-size: 0.9rem;
    color: #8c98a9;
    margin-bottom: 12px;
    margin-top: -4px;
    display: block;
}

.row-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    background-color: #fff;
    flex-wrap: wrap;
    gap: 15px;
}

.row-field label {
    margin-bottom: 0;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-box {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0 !important;
    background-color: #fff;
}

.radio-box input[type="radio"] {
    margin-right: 10px;
    accent-color: #1a73e8;
    width: 16px;
    height: 16px;
    margin-top: 0;
}

.radio-box span {
    color: #4a5568;
    font-weight: 500;
    font-size: 1rem;
}

.radio-box:hover {
    border-color: #a0aec0;
}

.radio-box:has(input:checked) {
    border-color: #1a73e8;
    background-color: #f8fbff;
}

.select-wrapper {
    position: relative;
    width: 90px;
}

.select-wrapper select {
    appearance: none;
    width: 100%;
    padding: 12px 35px 12px 18px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 1rem;
    color: #4a5568;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.select-wrapper select:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.select-wrapper::after {
    content: '\2304';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #8c98a9;
    font-size: 1.2rem;
}

.error-msg {
    color: var(--error-color);
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #e1e8ed;
    color: #4a5568;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #dcdfe6;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hidden {
    display: none !important;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    background-color: #95a5a6;
    color: #fff;
    cursor: not-allowed;
}

/* Event Details Styles */
.event-details {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.event-details li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.event-details li:last-child {
    border-bottom: none;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1000px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 40px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: auto;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--primary-color);
}

.table tr:hover {
    background-color: #fdfdfd;
}

.search-box {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.search-box button {
    width: auto;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #fdeaea;
    color: var(--error-color);
    border: 1px solid #f5c6c6;
}

/* ====================================
   Modern Admin Layout
   ==================================== */
.admin-body {
    background-color: #f0f2f5;
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 260px;
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 25px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e1e8ed;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #1a73e8;
    /* Blue brand accent */
    margin-top: 0;
    font-weight: 700;
}

.user-greeting {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    color: #4a5568;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #f8fbff;
    color: #1a73e8;
    border-left-color: #1a73e8;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    text-decoration: none;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-logout:hover {
    background-color: #e74c3c;
    color: white;
}

.admin-content {
    flex: 1;
    padding: 30px 40px;
    overflow-x: hidden;
}

.dashboard-header {
    margin-bottom: 30px;
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
}

.dashboard-header h1 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 0;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Utilities para Grids Responsivas */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    /* Slightly sharper edges per reference */
    padding: 30px 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 500;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-content h3 {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.stat-icon {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

/* Custom Card Colors Based on Reference */
.stat-card-blue {
    background-color: #007bff;
    /* Bright Blue */
}

.stat-card-dark {
    background-color: #343a40;
    /* Dark Gray */
}

.stat-card-orange {
    background-color: #ff9800;
    /* Orange/Yellow */
}

.card-table {
    padding: 2px 20px 20px 20px;
}

/* Responsiveness for admin dashboard */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 15px;
    }

    .sidebar-nav {
        max-height: none;
    }

    .admin-content {
        padding: 20px 15px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 1.8rem;
    }
}

/* Tags for added guests */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag-name {
    background-color: #2e7d32;
    /* Green background */
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.2);
}

.tag-name.crianca {
    background-color: #1976d2;
    /* Blue background */
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

.tag-remove {
    margin-left: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.8;
}

.tag-remove:hover {
    opacity: 1;
}

/* Refined Dashboard */
.admin-dashboard-hero {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dashboard-eyebrow {
    color: #9a6a2f;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.admin-dashboard-hero h1,
.panel-heading h2 {
    color: #1f2937;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    line-height: 1.15;
    margin: 0;
}

.admin-dashboard-hero p {
    color: #64748b;
    margin: 8px 0 0;
    font-size: 0.98rem;
}

.event-countdown-card {
    min-width: 260px;
    background: #fbf7ef;
    border: 1px solid #ead8bd;
    border-radius: 8px;
    padding: 18px 20px;
}

.event-countdown-card span {
    color: #8a642f;
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.event-countdown-card strong {
    color: #3b2a1d;
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
}

.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.metric-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #9a6a2f;
    border-radius: 8px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 108px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.metric-card span {
    color: #64748b;
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.metric-card strong {
    color: #111827;
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-top: 8px;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #9a6a2f;
    flex: 0 0 auto;
}

.metric-card-confirmed {
    border-left-color: #15803d;
}

.metric-card-confirmed .metric-icon {
    background: #ecfdf5;
    color: #15803d;
}

.metric-card-invites {
    border-left-color: #9a6a2f;
}

.metric-card-people {
    border-left-color: #2563eb;
}

.metric-card-people .metric-icon {
    background: #eff6ff;
    color: #2563eb;
}

.metric-card-pending {
    border-left-color: #b45309;
}

.metric-card-pending .metric-icon {
    background: #fffbeb;
    color: #b45309;
}

.metric-card-waiting {
    border-left-color: #475569;
}

.metric-card-waiting .metric-icon {
    background: #f1f5f9;
    color: #475569;
}

.dashboard-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.panel-heading-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #fbf7ef;
    color: #9a6a2f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-panel input {
    background: #ffffff;
    border: 1.5px solid #dbe2ea;
    border-radius: 8px;
    min-height: 46px;
}

.dashboard-panel input:focus {
    border-color: #b88945;
    box-shadow: 0 0 0 3px rgba(184, 137, 69, 0.14);
    outline: none;
}

.dashboard-save-button {
    background: #8a642f;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    padding: 12px 18px;
}

.dashboard-save-button:hover {
    background: #6f4c2b;
}

@media (max-width: 860px) {
    .admin-dashboard-hero,
    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-countdown-card {
        min-width: 0;
        width: 100%;
    }
}
