/* Temosfesta - Clean and Modern CSS */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #ffecd2 0%, #fcb69f 100%);
    background-attachment: fixed;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - 160px);
    padding: 20px 0;
}

/* Header Styles */
.header {
    background: white;
    border-bottom: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    background: transparent;
}

.nav-links a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Footer Styles */
.footer {
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    text-align: center;
    color: #6c757d;
    margin-top: auto;
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #212529;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Card Components */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1.25rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.card-content {
    padding: 1.25rem;
}

.card-actions {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(240, 147, 251, 0.4);
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background-color: transparent;
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline:hover {
    background-color: #6c757d;
    color: #fff;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Alert Components */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #b6d4da;
    color: #0c5460;
}

.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Grid Layouts */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.festa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.action-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* Statistics */
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
}

/* Colorful Stats Cards */
.stats-grid .card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-grid .card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stats-grid .card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stats-grid .card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.stats-grid .card {
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stats-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.stats-grid .card-header {
    background: transparent;
    border: none;
    color: white;
    font-weight: 600;
}

.stats-grid .card-content {
    background: transparent;
}

.stats-grid .card-title {
    color: white;
}

/* Status Indicators */
.status-planejando {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-confirmado {
    background-color: #d4edda;
    color: #155724;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-realizado {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-cancelado {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Form Styles */

.form-group {
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Filter Bar */
.filter-bar {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Table Styles */
.table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.festas-table {
    width: 100%;
    border-collapse: collapse;
}

.festas-table th,
.festas-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.festas-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.festas-table tbody tr:hover {
    background-color: #f8f9fa;
}

.festa-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.festa-link:hover {
    text-decoration: underline;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

/* Info Items */
.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.875rem;
}

.info-item span {
    color: #212529;
}

/* ============================================
   Hamburger Menu Styles
   ============================================ */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile overlay for menu */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
}

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

    /* Header hamburger menu */
    .hamburger-menu {
        display: flex;
    }

    .nav-overlay {
        display: block;
        pointer-events: none;
    }

    .nav-overlay.active {
        pointer-events: auto;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 8px;
        font-size: 1rem;
    }

    .nav-links a:hover {
        transform: none;
    }

    .nav-links .btn-nav {
        margin-top: 1rem;
        text-align: center;
    }

    .nav-user {
        border-top: 1px solid #e9ecef;
        padding-top: 1rem;
        margin-top: 1rem;
    }

    .nav-user-name {
        display: block;
        padding: 0.5rem 1.5rem;
        color: #6c757d;
        font-weight: 500;
    }

    .logo-img {
        height: 50px;
    }

    /* Page headers */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .header-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Grids - single column */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .festa-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    /* Filter form */
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: auto;
        width: 100%;
    }

    /* Tables - horizontal scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .festas-table {
        min-width: 600px;
    }

    /* Actions */
    .actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-grid {
        flex-direction: column;
    }

    .action-grid .btn {
        width: 100%;
        text-align: center;
    }

    /* Form actions */
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Buttons - larger touch targets */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-sm {
        min-height: 36px;
        padding: 0.5rem 1rem;
    }

    /* Drag and drop */
    .drag-drop-layout {
        grid-template-columns: 1fr;
    }

    .tags-list,
    .drop-zone {
        min-height: 150px;
    }

    /* Create festa card */
    .create-festa-content {
        padding: 3rem 1.5rem;
    }

    .create-festa-content h2 {
        font-size: 2rem;
    }

    .create-festa-content p {
        font-size: 1rem;
    }

    .create-festa-image svg {
        width: 80px;
        height: 80px;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }

    .card-header,
    .card-content,
    .card-actions {
        padding: 1rem;
    }

    /* Auth pages */
    .auth-page {
        padding: 1rem;
    }

    /* Gallery images */
    .images-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Responsive Design - Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* Typography adjustments */
    .page-title {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1rem;
    }

    /* Statistics */
    .stat-number {
        font-size: 2rem;
    }

    /* Tables */
    .festas-table th,
    .festas-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    /* Buttons - even larger for small screens */
    .btn {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        min-height: 48px;
        width: 100%;
    }

    .btn-sm {
        min-height: 40px;
        font-size: 0.75rem;
    }

    /* Form inputs - larger touch targets */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    /* Inline action buttons in tables */
    .actions {
        gap: 0.25rem;
    }

    .actions .btn {
        width: auto;
        min-width: 80px;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Tags */
    .tag {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Stats grid spacing */
    .stats-grid {
        gap: 1rem;
    }

    /* Alert */
    .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* Status badges */
    .status-planejando,
    .status-confirmado,
    .status-realizado,
    .status-cancelado {
        font-size: 0.625rem;
        padding: 0.2rem 0.4rem;
    }

    /* Festa summary */
    .festa-summary {
        padding: 1rem;
    }

    .festa-summary h3 {
        font-size: 1.25rem;
    }

    .summary-item {
        padding: 0.75rem;
    }

    /* Footer */
    .footer {
        padding: 0.75rem 0;
        font-size: 0.75rem;
    }

    /* Create festa card */
    .create-festa-content {
        padding: 2rem 1rem;
    }

    .create-festa-content h2 {
        font-size: 1.5rem;
    }

    .create-festa-content p {
        font-size: 0.875rem;
    }

    .create-festa-image svg {
        width: 60px;
        height: 60px;
    }

    /* Info items */
    .info-item label {
        font-size: 0.75rem;
    }

    .info-item span {
        font-size: 0.875rem;
    }
}

/* Drag and Drop Styles */
.drag-drop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tags-container,
.drop-zone-container {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tags-container h3,
.drop-zone-container h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.25rem;
}

.tags-list {
    /* Removido - substituído por .tags-list-inline nos grupos */
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: #fff;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: move;
    user-select: none;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.tag.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.tag.in-drop-zone {
    background-color: #28a745;
    cursor: pointer;
}

.tag.in-drop-zone:hover {
    background-color: #218838;
}

.drop-zone {
    min-height: 200px;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border: 3px dashed #ced4da;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: all 0.2s;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-content: flex-start;
}

.drop-zone.drag-over {
    background-color: #e3f2fd;
    border-color: #007bff;
    border-style: solid;
}

.drop-zone-hint {
    color: #6c757d;
    text-align: center;
    width: 100%;
    margin-top: 80px;
    font-style: italic;
}

.drop-zone:not(:empty) .drop-zone-hint {
    display: none;
}

.selected-tags-text {
    margin-top: 1rem;
}

.selected-tags-text label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.selected-tags-text textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    background-color: #fff;
    resize: vertical;
}

/* Responsive adjustments for drag-drop */
@media (max-width: 768px) {
    .drag-drop-layout {
        grid-template-columns: 1fr;
    }

    .tags-list,
    .drop-zone {
        min-height: 150px;
    }
}

/* Create Festa Card - Large Call to Action */
.create-festa-card {
    margin: 3rem 0;
}

.create-festa-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.create-festa-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.create-festa-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.create-festa-image {
    margin-bottom: 2rem;
}

.create-festa-image svg {
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.create-festa-content:hover .create-festa-image svg {
    transform: scale(1.1);
    opacity: 1;
}

.create-festa-content h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.create-festa-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .create-festa-content {
        padding: 3rem 1.5rem;
    }

    .create-festa-content h2 {
        font-size: 2rem;
    }

    .create-festa-content p {
        font-size: 1rem;
    }

    .create-festa-image svg {
        width: 80px;
        height: 80px;
    }
}
/* Tags readonly field */
.tags-readonly {
    background-color: #f8f9fa !important;
    cursor: not-allowed;
}

/* Tags Groups */
.tags-group {
    margin-bottom: 1.5rem;
}

.tags-group-title {
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.tags-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tags-container {
    max-height: 600px;
    overflow-y: auto;
}

/* ============================================
   Festa Summary (Email Page)
   ============================================ */

.festa-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

.festa-summary h3 {
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: white;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.summary-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item.full-width {
    grid-column: 1 / -1;
}

.summary-item strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
}

/* ============================================
   Loading States
   ============================================ */

/* Button loading state */
.btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.75;
    cursor: wait;
}

.btn.is-loading .btn-label {
    visibility: hidden;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.25em;
    height: 1.25em;
    margin-top: -0.625em;
    margin-left: -0.625em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Fullscreen loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: overlay-fade-in 0.2s ease;
}

@keyframes overlay-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.loading-overlay-box {
    background: white;
    padding: 2.5rem 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 360px;
    width: 90%;
    animation: overlay-box-in 0.3s ease;
}

@keyframes overlay-box-in {
    from { transform: scale(0.9) translateY(10px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.loading-overlay-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
    margin: 0 auto 1.25rem;
}

.loading-overlay-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.loading-overlay-subtext {
    font-size: 0.875rem;
    color: #64748b;
}

/* Loading bar at top of page (thin progress indicator) */
.loading-topbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: topbar-slide 1.5s ease infinite;
    z-index: 10000;
    transition: width 0.3s ease;
}

@keyframes topbar-slide {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Flash Messages
   ============================================ */

.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    width: 100%;
}

.flash-message {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.flash-sucesso {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.flash-erro {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.flash-info {
    background-color: #d1ecf1;
    border: 1px solid #b6d4da;
    color: #0c5460;
}

.flash-content {
    flex: 1;
    margin-right: 1rem;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Auth Pages
   ============================================ */

.auth-page {
    padding: 2rem 0;
    max-width: 450px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #64748b;
    font-size: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.btn-full {
    width: 100%;
    display: block;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    text-align: center;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-links a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ============================================
   Dashboard
   ============================================ */

.dashboard-welcome {
    flex: 1;
}

.welcome-subtitle {
    color: #64748b;
    margin-top: 0.25rem;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.section-header {
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.stat-text {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.stat-date {
    text-align: center;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.festa-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.festa-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    gap: 0.5rem;
}

.info-row .info-label {
    font-weight: 600;
    color: #64748b;
    min-width: 60px;
}

.info-row .info-value {
    color: #1e293b;
}

.festa-card .card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-state-icon {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Page Header (painel)
   ============================================ */

.page-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   Stats Grid 4 (painel)
   ============================================ */

.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.stat-confirmados {
    border-left: 3px solid #10b981;
}

.stat-pendentes {
    border-left: 3px solid #f59e0b;
}

/* ============================================
   Festa Detalhes (painel)
   ============================================ */

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.status-planejando {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-confirmado {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-realizado {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.status-cancelado {
    background: #fee2e2;
    color: #991b1b;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.link-secreto-card {
    margin-bottom: 1.5rem;
}

.link-help {
    color: #64748b;
    margin-bottom: 0.75rem;
}

.link-container {
    display: flex;
    gap: 0.5rem;
}

.link-input {
    flex: 1;
    padding: 0.625rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.875rem;
    background: #f8fafc;
}

.btn-copy {
    white-space: nowrap;
}

.copy-feedback {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.festa-info-card {
    margin-bottom: 1.5rem;
}

.info-item .info-label {
    font-weight: 600;
    color: #64748b;
    min-width: 140px;
}

.info-item .info-value {
    color: #1e293b;
}

.info-item-highlight {
    grid-column: span 2;
    background: #f0fdf4;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #10b981;
}

.tema-value {
    font-weight: 600;
    color: #065f46;
}

.info-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.info-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.info-text {
    color: #1e293b;
    line-height: 1.6;
}

.imagens-card {
    margin-bottom: 1.5rem;
}

.empty-imagens {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.empty-imagens p {
    margin-bottom: 0.5rem;
}

.imagens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.imagem-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.imagem-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.imagem-tipo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.75rem;
    text-transform: capitalize;
    text-align: center;
}

/* ============================================
   Convidados
   ============================================ */

.convidados-card {
    overflow: hidden;
}

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

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th, .table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: #f8fafc;
}

.td-nome {
    font-weight: 500;
    color: #1e293b;
}

.td-email, .td-telefone {
    color: #64748b;
}

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

.td-acoes {
    white-space: nowrap;
}

.text-muted {
    color: #94a3b8;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-confirmado {
    background: #d1fae5;
    color: #065f46;
}

.badge-pendente {
    background: #fef3c7;
    color: #92400e;
}

.actions-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-success {
    background: #10b981;
    color: white;
    border: none;
}

.btn-success:hover {
    background: #059669;
}

/* ============================================
   Imagens Gallery
   ============================================ */

.gerar-card {
    margin-bottom: 1.5rem;
}

.tema-section {
    margin-bottom: 1.5rem;
}

.tema-help {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    max-width: 400px;
    padding: 0.625rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.gerar-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gerar-form {
    display: flex;
}

.btn-gerar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-gerar:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-icon {
    color: #64748b;
    margin-bottom: 0.75rem;
}

.btn-gerar:hover .btn-icon {
    color: #3b82f6;
}

.btn-text {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.btn-desc {
    font-size: 0.75rem;
    color: #64748b;
}

.btn-convite:hover {
    border-color: #8b5cf6;
}

.btn-convite:hover .btn-icon {
    color: #8b5cf6;
}

.btn-decoracao:hover {
    border-color: #f59e0b;
}

.btn-decoracao:hover .btn-icon {
    color: #f59e0b;
}

.tipo-card {
    margin-bottom: 1.5rem;
}

.tipo-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-count {
    font-size: 0.875rem;
    color: #64748b;
}

.imagem-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.imagem-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.imagem-card .imagem-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.imagem-card:hover .imagem-preview {
    transform: scale(1.05);
}

.imagem-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.imagem-card:hover .imagem-overlay {
    opacity: 1;
}

.btn-view {
    background: white;
    color: #1e293b;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.btn-view:hover {
    background: #f8fafc;
}

.imagem-info {
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
}

.imagem-date {
    font-size: 0.75rem;
    color: #64748b;
}

/* Loading state for gerar buttons */
.icon-loading {
    display: none;
}

.btn-text-loading {
    display: none;
}

.btn-gerar.loading .icon-default {
    display: none;
}

.btn-gerar.loading .icon-loading {
    display: block;
}

.btn-gerar.loading .btn-text {
    display: none;
}

.btn-gerar.loading .btn-text-loading {
    display: block;
    color: #3b82f6;
}

.btn-gerar.loading {
    pointer-events: none;
    opacity: 0.8;
    border-color: #3b82f6;
}

.btn-gerar.loading .btn-desc {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
    color: #3b82f6;
}

/* ============================================
   Festa Editar
   ============================================ */

.festa-form {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
   Festa Ver (landing page)
   ============================================ */

.festa-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.convite-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(180deg, #fef7f0 0%, #fff5f5 100%);
}

.convite-container {
    max-width: 600px;
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.convite-img {
    width: 100%;
    height: auto;
    display: block;
}

.convite-placeholder {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin-bottom: 2rem;
}

.festa-title-hero {
    font-size: 2.5rem;
    color: #1e293b;
    margin: 0 0 1rem 0;
}

.tema-hero {
    font-size: 1.25rem;
    color: #7c3aed;
    margin: 0 0 1.5rem 0;
}

.festa-info-hero {
    color: #64748b;
    font-size: 1.1rem;
}

.festa-info-hero p {
    margin: 0.5rem 0;
}

.cta-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-festa-grande {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ffd93d 100%);
    color: white;
    padding: 1.25rem 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 3rem;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5);
    transition: all 0.3s ease;
    border: none;
    animation: pulse 2s infinite;
}

.btn-festa-grande:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(255, 107, 107, 0.6);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5); }
    50% { box-shadow: 0 6px 35px rgba(255, 107, 107, 0.7); }
}

.btn-recusar {
    color: #94a3b8;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.btn-recusar:hover {
    color: #64748b;
    text-decoration: underline;
}

.detalhes-section {
    background: white;
    padding: 1rem 2rem;
    border-top: 1px solid #e2e8f0;
}

.detalhes-accordion {
    max-width: 600px;
    margin: 0 auto;
}

.detalhes-toggle {
    cursor: pointer;
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-weight: 500;
    list-style: none;
}

.detalhes-toggle::-webkit-details-marker {
    display: none;
}

.detalhes-toggle:hover {
    color: #7c3aed;
}

.detalhes-content {
    padding: 1rem 0;
}

.info-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item-compact {
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.info-item-compact .info-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.info-item-compact .info-value {
    display: block;
    font-weight: 600;
    color: #1e293b;
}

.outras-indicacoes {
    padding: 1rem;
    background: #fef3c7;
    border-radius: 0.5rem;
    color: #92400e;
    font-size: 0.9rem;
}

/* ============================================
   Festa Inscrever
   ============================================ */

.inscrever-page {
    padding: 2rem 0;
}

.inscrever-header {
    text-align: center;
    margin-bottom: 2rem;
}

.inscrever-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ffd93d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.inscrever-subtitle {
    color: #64748b;
    font-size: 1.125rem;
}

.inscrever-page .festa-summary {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.inscrever-page .summary-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.inscrever-page .summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    background: transparent;
    backdrop-filter: none;
    border: none;
    padding: 0;
}

.summary-label {
    font-size: 0.875rem;
    color: #92400e;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.summary-value {
    font-size: 1.25rem;
    color: #78350f;
    font-weight: 700;
}

.inscrever-form h2 {
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.btn-festa {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ffd93d 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-festa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-recusar-submit {
    background: #94a3b8;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-recusar-submit:hover {
    background: #64748b;
    transform: translateY(-2px);
}

.recusar-title {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.convite-banner {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.inscrever-page .convite-img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

.festa-tema {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0e6ff 0%, #e6f0ff 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.festa-tema .tema-label {
    font-weight: 600;
    color: #7c3aed;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.festa-tema .tema-value {
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 500;
}

/* ============================================
   Festa Confirmacao (creation success)
   ============================================ */

.success-page {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    color: #22c55e;
    margin: 0 auto 1.5rem;
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.success-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.success-card {
    text-align: left;
    margin: 0 auto 2rem;
    max-width: 600px;
}

.success-card .info-section {
    margin-bottom: 2rem;
}

.success-card .info-section:last-child {
    margin-bottom: 0;
}

.success-card .info-section h3 {
    font-size: 1.125rem;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.success-card .info-item {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.secret-code {
    background: #fff;
    padding: 0.25rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #7c3aed;
    font-weight: bold;
}

.link-box {
    margin: 1rem 0;
}

.success-card .link-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: #f8fafc;
    cursor: pointer;
}

.success-card .link-input:focus {
    outline: none;
    border-color: #7c3aed;
    background: #fff;
}

.info-help {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.next-steps {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    position: relative;
}

.next-steps li:before {
    content: '\2713';
    position: absolute;
    left: 0.75rem;
    color: #22c55e;
    font-weight: bold;
}

/* ============================================
   Inscrever Confirmacao
   ============================================ */

.confirmacao-page {
    padding: 2rem 0;
    text-align: center;
}

.confirmacao-card {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.confirmacao-recusa {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.confirmacao-recusa .confirmacao-title {
    color: #475569;
}

.confirmacao-recusa .confirmacao-message {
    color: #64748b;
}

.confirmacao-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirmacao-title {
    font-size: 2rem;
    color: #166534;
    margin-bottom: 1rem;
}

.confirmacao-message {
    font-size: 1.125rem;
    color: #15803d;
}

.festa-reminder {
    margin-bottom: 2rem;
}

.festa-reminder h2 {
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.reminder-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.reminder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.reminder-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.reminder-value {
    font-size: 1.125rem;
    color: #1e293b;
    font-weight: 600;
}

.confirmacao-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Convite Form (summary with purple border)
   ============================================ */

.festa-convite .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.festa-convite .summary-item {
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 3px solid #7c3aed;
}

.festa-convite .summary-item.full-width {
    grid-column: 1 / -1;
}

.festa-convite .summary-item strong {
    color: #64748b;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* ============================================
   Additional Responsive Rules
   ============================================ */

@media (max-width: 768px) {
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .gerar-buttons {
        grid-template-columns: 1fr;
    }

    .table th, .table td {
        padding: 0.5rem;
    }

    .td-email, .td-telefone {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-festa-grande {
        padding: 1rem 2rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .info-item-highlight {
        grid-column: span 1;
    }

    .festa-title-hero {
        font-size: 1.75rem;
    }

    .convite-hero {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .flash-container {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
