/* Wish List Styles */
:root {
    --success-color: #28a745;
    --success-hover: #218838;
    --primary-color: #007bff;
    --warning-color: #ffc107;
    --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, #56ab2f 0%, #a8e6cf 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 0;
}

.wishlist-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(--success-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 */
.birthday-theme {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
}

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

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

/* 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(--success-color);
    font-weight: 600;
}

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

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

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

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

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

.wish-category {
    margin-bottom: 30px;
}

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

.wish-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.wish-item:hover {
    background: #e9ecef;
}

.wish-item.priority-high {
    border-left-color: var(--danger-color);
}

.wish-item.priority-medium {
    border-left-color: var(--warning-color);
}

.wish-item.priority-low {
    border-left-color: var(--success-color);
}

.wish-item-info {
    flex: 1;
}

.wish-item-name {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.wish-item-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.wish-item-store {
    font-size: 0.8rem;
    color: var(--success-color);
    font-style: italic;
}

.wish-item-details {
    text-align: right;
}

.wish-item-price {
    font-weight: 600;
    color: var(--success-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.wish-item-priority {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    color: white;
}

.wish-item-priority.high {
    background-color: var(--danger-color);
}

.wish-item-priority.medium {
    background-color: var(--warning-color);
}

.wish-item-priority.low {
    background-color: var(--success-color);
}

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

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

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

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

.category-items {
    margin-left: 15px;
}

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

.category-item-row:last-child {
    border-bottom: none;
}

/* Theme Previews for Wish List */
.wishlist-preview.birthday-theme {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
}

.wishlist-preview.birthday-theme .wishlist-header h2 {
    color: white;
}

.wishlist-preview.birthday-theme .wish-category-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.wishlist-preview.birthday-theme .wish-item {
    background: rgba(255, 255, 255, 0.1);
}

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

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

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

.wishlist-preview.wedding-theme .wish-item {
    background: rgba(255, 255, 255, 0.3);
}

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

.wishlist-preview.holiday-theme .wishlist-header h2 {
    color: #2c3e50;
}

.wishlist-preview.holiday-theme .wish-category-title {
    color: #2c3e50;
    border-bottom-color: rgba(44, 62, 80, 0.3);
}

.wishlist-preview.holiday-theme .wish-item {
    background: rgba(255, 255, 255, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .editor-section {
        padding: 40px 0;
    }
    
    .wishlist-preview {
        padding: 20px;
        margin-top: 30px;
    }
    
    .theme-preview {
        height: 100px;
        padding: 20px;
    }
    
    .wish-item {
        flex-direction: column;
    }
    
    .wish-item-details {
        text-align: left;
        margin-top: 10px;
    }
}

/* 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(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

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

.wish-item, .category-item {
    animation: slideIn 0.3s ease-out;
}