:root {
    --primary-color: #2c3e50;
    --primary-hover: #1a252f;
    --accent-color: #d4af37;
    --bg-color: #f7f9fb;
    --text-color: #333;
    --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-color: #ffeff1;
    /* Requested pink background */
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Using the provided background image */
.daisy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imagen/fundo.png');
    background-size: cover;
    background-position: center;
    opacity: 1;
    /* Fully visible */
    z-index: 0;
    pointer-events: none;
}

.split-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: transparent;
    /* Remove the white card background to blend more with the pink */
    z-index: 10;
    min-height: 80vh;
}

.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: 40px;
    position: relative;
}

.photo-frame {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4/5;
    border-radius: 200px 200px 20px 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(255, 182, 193, 0.3);
    border: 8px solid #fff;
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(255, 182, 193, 0.5);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.form-side {
    flex: 1;
    padding: 30px 60px;
    /* Reduced top/bottom padding from 50px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    /* White card for the form side like the reference */
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Typography matching reference but more elegant/delicate */
.clean-form .form-title {
    color: #1a1e29;
    font-size: 2.8rem;
    font-weight: 500;
    /* Softer weight */
    font-family: 'Playfair Display', Georgia, serif;
    /* Elegant, delicate serif */
    letter-spacing: -0.5px;
    font-style: italic;
    /* Feminine touch */
}

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

.clean-form .custom-field label {
    color: #4b5563;
    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 #e5e7eb !important;
    border-radius: 8px !important;
    background-color: #fcfcfd !important;
    color: #1f2937 !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: #f5c4c9 !important;
    /* Soft pink border on focus */
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(250, 218, 221, 0.5) !important;
    outline: none;
}

/* Error message styling like reference */
.clean-form .alert-error {
    background-color: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    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 #e5e7eb;
    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: #f5c4c9;
    /* Subtle pink select */
    background-color: #fffafb;
    box-shadow: 0 4px 10px rgba(250, 218, 221, 0.3);
}

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

.clean-form .radio-box input[type="radio"] {
    accent-color: #d87093;
    /* Pale Violet Red accent */
    width: 18px;
    height: 18px;
    margin-right: 12px;
}

/* Primary Button - Requested Color #fadadf */
.btn-daisy {
    background-color: #fadadf;
    /* Pink requested by user */
    color: #1a1e29;
    /* Dark text for contrast */
    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 4px 15px -1px rgba(250, 218, 223, 0.6);
    transition: all 0.3s ease;
}

.btn-daisy:hover {
    background-color: #fce8eb;
    /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -5px rgba(250, 218, 223, 0.5);
}

.btn-daisy-outline {
    background: transparent;
    border: 2px solid #fadadf;
    color: #1a1e29;
    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: #fff;
    border-color: #fce8eb;
}

@media (max-width: 850px) {
    .split-container {
        flex-direction: column;
        background: transparent;
    }

    .photo-side {
        padding: 20px;
        background: linear-gradient(180deg, rgba(255, 240, 245, 0.8) 0%, rgba(255, 228, 225, 0.3) 100%);
    }

    .photo-frame {
        max-width: 250px;
        aspect-ratio: 4/5;
        border-radius: 125px 125px 20px 20px;
    }

    .form-side {
        padding: 40px 30px;
        border-radius: 24px;
    }
}

.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(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.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;
    }

    .sidebar-nav {
        max-height: 200px;
    }
}

/* 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;
}