/* Special Events Styles */
:root {
    --warning-color: #ffc107;
    --warning-hover: #e0a800;
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #ffffff;
    padding-top: 76px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 0;
}

.events-preview-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Theme Selection */
.themes-section {
    background-color: white;
}

.theme-card {
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 3px solid transparent;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.theme-card.active {
    border-color: var(--warning-color);
}

.theme-preview {
    padding: 30px;
    text-align: center;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: var(--border-radius);
}

/* Theme Styles */
.wedding-theme {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #2c3e50;
}

.party-theme {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
}

.corporate-theme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Editor Section */
.editor-section {
    padding: 60px 0;
}

.editor-panel, .preview-panel {
    height: fit-content;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
}

.card-title {
    color: var(--warning-color);
    font-weight: 600;
}

/* Event Preview */
.event-preview {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    min-height: 400px;
}

.event-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-bg);
}

.event-header h2 {
    color: var(--warning-color);
    margin-bottom: 15px;
}

.event-details {
    margin: 15px 0;
}

.event-details p {
    margin: 5px 0;
    color: #6c757d;
}

.event-section {
    margin-bottom: 30px;
}

.event-section-title {
    color: var(--warning-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--light-bg);
}

.event-content-item {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
    border-left: 4px solid var(--warning-color);
}

.event-content-item:hover {
    background: #e9ecef;
}

.event-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.event-content-title {
    font-weight: 600;
    color: var(--dark-text);
    margin: 0;
}

.event-content-time {
    font-size: 0.9rem;
    color: var(--warning-color);
    font-weight: 500;
}

.event-content-description {
    color: #6c757d;
    margin: 0;
}

/* Section Management */
.section-item {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid var(--warning-color);
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 10px;
}

.section-title {
    font-weight: 600;
    color: var(--warning-color);
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 5px;
}

.section-content {
    margin-left: 15px;
}

.section-content-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.section-content-row:last-child {
    border-bottom: none;
}

/* Theme Previews for Events */
.event-preview.wedding-theme {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #2c3e50;
}

.event-preview.wedding-theme .event-header h2 {
    color: #2c3e50;
}

.event-preview.wedding-theme .event-section-title {
    color: #2c3e50;
    border-bottom-color: rgba(44, 62, 80, 0.3);
}

.event-preview.wedding-theme .event-content-item {
    background: rgba(255, 255, 255, 0.3);
    border-left-color: #2c3e50;
}

.event-preview.party-theme {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2c3e50;
}

.event-preview.party-theme .event-header h2 {
    color: #2c3e50;
}

.event-preview.party-theme .event-section-title {
    color: #2c3e50;
    border-bottom-color: rgba(44, 62, 80, 0.3);
}

.event-preview.party-theme .event-content-item {
    background: rgba(255, 255, 255, 0.3);
    border-left-color: #2c3e50;
}

.event-preview.corporate-theme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.event-preview.corporate-theme .event-header h2 {
    color: white;
}

.event-preview.corporate-theme .event-section-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.event-preview.corporate-theme .event-content-item {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: white;
}

/* Schedule Specific Styles */
.schedule-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
}

.schedule-time {
    min-width: 80px;
    font-weight: 600;
    color: var(--warning-color);
    margin-right: 15px;
}

.schedule-content {
    flex: 1;
}

.schedule-title {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.schedule-description {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Contact Info Styles */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: var(--light-bg);
    border-radius: 8px;
}

.contact-icon {
    width: 40px;
    text-align: center;
    color: var(--warning-color);
    margin-right: 15px;
}

.contact-info h6 {
    margin-bottom: 0;
    color: var(--dark-text);
}

.contact-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-sm {
    border-radius: 20px;
}

/* Navbar dark text fix */
.navbar-dark .navbar-nav .nav-link.text-dark {
    color: #212529 !important;
}

.navbar-dark .navbar-nav .nav-link.text-dark:hover {
    color: #000 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .editor-section {
        padding: 40px 0;
    }
    
    .event-preview {
        padding: 20px;
        margin-top: 30px;
    }
    
    .theme-preview {
        height: 100px;
        padding: 20px;
    }
    
    .event-content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-content-time {
        margin-top: 5px;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .schedule-time {
        margin-bottom: 10px;
        margin-right: 0;
    }
}

/* Modal Enhancements */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-medium);
}

.modal-header {
    border-bottom: 1px solid var(--light-bg);
}

.modal-footer {
    border-top: 1px solid var(--light-bg);
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Animation for adding items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-content-item, .section-item, .schedule-item, .contact-item {
    animation: slideIn 0.3s ease-out;
}