@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    --secondary: #06B6D4;
    --secondary-dark: #0891B2;
    --accent: #F59E0B;
    --accent-light: #FEF3C7;
    --pink-festive: #F43F5E;
    --success: #10B981;
    --success-light: #D1FAE5;
    --bg-light: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --card-radius: 1.5rem;
    --btn-radius: 9999px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(244, 63, 94, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3, .festive-font {
    font-family: 'Fredoka', 'Outfit', sans-serif;
}

/* Card custom layout */
.custom-card {
    background: var(--bg-card);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--card-radius);
    box-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.custom-card:hover {
    box-shadow: 0 25px 45px -10px rgba(99, 102, 241, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Header com temática festiva moderna */
.card-header-camp {
    background: var(--primary-gradient);
    border-top-left-radius: var(--card-radius);
    border-top-right-radius: var(--card-radius);
    padding: 2.8rem 2rem 2.2rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.card-header-camp::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: rotate-bg 25s linear infinite;
    pointer-events: none;
}

.card-header-camp::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
}

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

.festive-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.35rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

/* Logo styling */
.camp-logo {
    max-height: 130px;
    width: auto;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.22));
    transition: transform 0.3s ease;
}

.camp-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.93rem;
    margin-bottom: 0.45rem;
}

.form-control, .form-select {
    border-radius: 0.85rem;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.1rem;
    font-weight: 400;
    color: var(--text-main);
    background-color: #FAFAFC;
    transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    background-color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
}

/* Section titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.28rem;
    color: #312E81;
    margin-bottom: 1.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px dashed #E0E7FF;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: var(--primary);
    border-radius: 10px;
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary-camp {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--btn-radius);
    padding: 0.85rem 2.5rem;
    font-family: 'Fredoka', 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 18px -4px rgba(236, 72, 153, 0.35), 0 4px 10px -2px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary-camp:hover {
    color: white;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 24px -4px rgba(236, 72, 153, 0.45), 0 6px 14px -2px rgba(99, 102, 241, 0.35);
}

.btn-primary-camp:active {
    transform: translateY(1px);
}

/* Radio / Checkbox chips */
.custom-option {
    display: inline-block;
    position: relative;
    margin-right: 10px;
    margin-bottom: 10px;
}

.custom-option input[type="radio"], 
.custom-option input[type="checkbox"] {
    display: none;
}

.custom-option label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.35rem;
    border: 2px solid var(--border-color);
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: white;
}

.custom-option label:hover {
    border-color: #CBD5E1;
    color: var(--text-main);
}

.custom-option input[type="radio"]:checked + label,
.custom-option input[type="checkbox"]:checked + label {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-color: #6366F1;
    color: white;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.28);
    transform: translateY(-1px);
}

/* Allergy box */
.allergy-box {
    background-color: #FFF1F2;
    border: 2px dashed #FECDD3;
    border-radius: 1rem;
    padding: 1.25rem;
}

/* Cartão de Destaque - Inscrição Gratuita & Doação Voluntária */
.donation-card {
    background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 40%, #FFFBEB 100%);
    border: 2px solid #6EE7B7;
    border-radius: 1.25rem;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donation-card:hover {
    box-shadow: 0 14px 30px -5px rgba(16, 185, 129, 0.18);
}

.donation-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}

.pix-donation-box {
    background-color: #FFFFFF;
    border: 1.5px solid #A7F3D0;
    border-radius: 1rem;
}

/* Pix box */
.pix-details-box {
    background: linear-gradient(135deg, #F0FDF4 0%, #EFF6FF 100%);
    border: 2px solid #BBF7D0;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 4px 15px -2px rgba(16, 185, 129, 0.08);
}

.pix-qr-frame {
    background: white;
    border: 3px solid #E0E7FF;
    border-radius: 1.25rem;
    padding: 1rem;
    display: inline-block;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
}

/* Terms section */
.terms-container {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    max-height: 250px;
    overflow-y: auto;
    padding: 1.4rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-main);
}

.terms-container h5 {
    font-weight: 700;
    font-size: 0.95rem;
    color: #312E81;
    margin-top: 1rem;
}

.signature-field {
    border-bottom: 2px solid #4F46E5;
    width: 80%;
    margin: 1.75rem auto 0.5rem auto;
    min-height: 40px;
}

.style-signature {
    font-family: 'Fredoka', cursive, sans-serif;
    font-style: italic;
    letter-spacing: 1px;
}

/* Admin Dashboard Elements */
.stat-card {
    border-radius: 1.25rem;
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 25px -5px rgba(0, 0, 0, 0.12);
}

.stat-card.purple {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
}

.stat-card.coral {
    background: linear-gradient(135deg, #F43F5E 0%, #FB7185 100%);
}

.stat-card.emerald {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.stat-card.amber {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
}

/* For backwards compatibility with blue/orange/green */
.stat-card.blue {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
}

.stat-card.orange {
    background: linear-gradient(135deg, #F43F5E 0%, #FB7185 100%);
}

.stat-card.green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.stat-card .icon {
    font-size: 2.75rem;
    opacity: 0.85;
}

.stat-card .num {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
}

/* Table styling for admin */
.table-responsive {
    border-radius: 1.25rem;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    background: white;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #F8FAFC;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.6px;
    border-bottom: 2px solid var(--border-color);
    padding: 1.1rem 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #F1F5F9;
}

.table tr:last-child td {
    border-bottom: none;
}

.badge-paid {
    background-color: #DCFCE7;
    color: #166534;
    border: 1px solid #86EFAC;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-weight: 600;
}

.badge-pending {
    background-color: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-weight: 600;
}

.cursor-pointer {
    cursor: pointer;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    #printArea, #printArea * {
        visibility: visible;
    }
    #printArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .table-responsive .table {
        min-width: 950px;
    }
}
