/* Modern Form Styles */

/* Form Sections */
.form-section {
    border: 1px solid #f0f0f0;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.form-section-header i {
    font-size: 1.25rem;
    color: #667eea;
}

.form-section-body {
    padding: 1.5rem;
}

/* Form Check Modern */
.form-check-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.form-check-modern:hover {
    background: #e5e7eb;
}

.form-check-modern .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    margin: 0;
}

.form-check-modern .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-modern .form-check-label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Image Preview */
.image-preview-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-preview-container img {
    width: 100%;
    height: auto;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* File Input */
.file-input-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem 2rem;
    border: 2px dashed #d1d5db;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-input-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.file-input-label i {
    font-size: 2.5rem;
    color: #667eea;
}

.file-input-label span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.file-input-label small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.file-input:focus + .file-input-label {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Multi-Image Upload */
.multi-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.multi-image-preview .image-preview-container {
    max-width: 100%;
    height: 150px;
}

.multi-image-preview .image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .form-section-body {
        padding: 1.25rem;
    }

    .form-section-header {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn-secondary-modern,
    .form-actions .btn-primary-modern {
        width: 100%;
    }

    .file-input-label {
        padding: 2rem 1.5rem;
    }

    .file-input-label i {
        font-size: 2rem;
    }

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

    .form-field-full {
        grid-column: span 1;
    }

    .dish-field-row {
        grid-template-columns: 1fr;
    }

    .dish-row-header {
        padding: 0.625rem 0.875rem;
    }

    .dish-row-body {
        padding: 1rem;
    }

    .input-group {
        flex-direction: column;
    }
}

/* ========================================
   Additional Form Component Styles
   ======================================== */

/* File Input Small Variant */
.file-input-label-small {
    padding: 1.5rem 1rem;
}

    .file-input-label-small i {
        font-size: 2rem;
    }

    .file-input-label-small span {
        font-size: 0.875rem;
    }

    .file-input-label-small small {
        font-size: 0.75rem;
    }

/* Current Image Display (for Edit pages) */
.current-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.current-image-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.current-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* Enhanced Form Grid System */
.enhanced-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field-full {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}

/* Enhanced Form Labels */
.enhanced-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
}

    .enhanced-label i {
        color: #667eea;
        font-size: 1rem;
    }

/* Enhanced Form Inputs */
.enhanced-input,
.enhanced-select,
.enhanced-select-rating {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

    .enhanced-input:focus,
    .enhanced-select:focus,
    .enhanced-select-rating:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        background: #fefefe;
    }

.enhanced-select,
.enhanced-select-rating {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

    .enhanced-select:hover,
    .enhanced-select-rating:hover {
        border-color: #9ca3af;
    }

.enhanced-select-rating {
    font-weight: 500;
}

.enhanced-textarea,
.enhanced-textarea-large {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    resize: vertical;
    background: white;
    line-height: 1.6;
}

    .enhanced-textarea:focus,
    .enhanced-textarea-large:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        background: #fefefe;
    }

    .enhanced-textarea::placeholder,
    .enhanced-textarea-large::placeholder,
    .enhanced-input::placeholder {
        color: #9ca3af;
    }

/* Input with Icon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-weight: 600;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.enhanced-input.with-icon {
    padding-left: 2.5rem;
}

/* Input Group (for buttons next to inputs) */
.input-group {
    display: flex;
    gap: 0.5rem;
}

    .input-group .enhanced-input {
        flex: 1;
    }

.btn-icon-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .btn-icon-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    }

    .btn-icon-action i {
        font-size: 0.875rem;
    }

/* Enhanced Checkbox */
.enhanced-checkbox {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .enhanced-checkbox:hover {
        background: #f3f4f6;
        border-color: #667eea;
    }

    .enhanced-checkbox input[type="checkbox"] {
        width: 1.25rem;
        height: 1.25rem;
        margin-right: 0.75rem;
        cursor: pointer;
        accent-color: #667eea;
    }

    .enhanced-checkbox label {
        margin: 0;
        cursor: pointer;
        font-weight: 500;
        color: #374151;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
    }

        .enhanced-checkbox label i {
            color: #667eea;
        }

/* YouTube Preview */
.youtube-preview {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

    .youtube-preview .preview-label {
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .youtube-preview .preview-label i {
            color: #ff0000;
        }

    .youtube-preview iframe {
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

/* Photo Section Styles */
.photo-section {
    border-bottom: 2px dashed #e5e7eb;
    padding-bottom: 1.5rem;
}

    .photo-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.photo-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .photo-section-title i {
        color: #667eea;
        font-size: 1.25rem;
    }

/* ========================================
   Dish Management Styles
   ======================================== */

.dishes-list-container {
    margin-top: 1rem;
}

.dish-row-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(10px);
}

.dish-row-fadeIn {
    opacity: 1;
    transform: translateY(0);
}

.dish-row-fadeOut {
    opacity: 0;
    transform: translateX(-20px) scale(0.95);
}

.dish-row-enhanced:hover {
    border-color: #667eea;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.dish-row-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dish-row-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

    .dish-row-title i {
        font-size: 1.125rem;
    }

.btn-remove-dish-enhanced {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

    .btn-remove-dish-enhanced:hover {
        background: #dc2626;
        border-color: #dc2626;
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
    }

.dish-row-body {
    padding: 1.25rem;
}

.dish-field-group {
    margin-bottom: 1rem;
}

    .dish-field-group:last-child {
        margin-bottom: 0;
    }

.dish-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dish-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

    .dish-label i {
        color: #667eea;
        font-size: 0.875rem;
    }

.dish-input,
.dish-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: white;
}

    .dish-input:focus,
    .dish-select:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        background: #fefefe;
    }

    .dish-input::placeholder {
        color: #9ca3af;
    }

.dish-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

    .dish-select:hover {
        border-color: #9ca3af;
    }

.dish-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.2s ease;
    resize: vertical;
    background: white;
}

    .dish-textarea:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        background: #fefefe;
    }

    .dish-textarea::placeholder {
        color: #9ca3af;
    }
