/* Plan.css - Styles for AI Study Plan Generator */

/* Enhanced Plan Block Styles */
.plan-block {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan-block.completed {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #22c55e;
}

.completion-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.block-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.block-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.block-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.block-details {
    flex: 1;
}

.block-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.block-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.badge-sm {
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
}

.block-type {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.block-status {
    display: flex;
    align-items: center;
}

.status-indicator {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid #cbd5e1;
    transition: all 0.3s ease;
}

.status-indicator.completed {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #16a34a;
}

.block-content {
    margin-bottom: 1.5rem;
}

.block-instructions {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.block-topics {
    margin-top: 1rem;
}

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

.topics-title::before {
    content: "📌";
    font-size: 1rem;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
    cursor: pointer;
}

.topic-pill:hover {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border-color: #0ea5e9;
    color: #0c4a6e;
    transform: translateY(-1px);
}

.topic-icon {
    font-size: 0.625rem;
}

.topic-text {
    font-size: 0.75rem;
}

/* External Resources Styles */
.block-resources {
    margin-top: 1rem;
}

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

.resources-title::before {
    content: "🔗";
    font-size: 1rem;
}

.resources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #92400e;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.resource-link:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    border-color: #d97706;
    color: #78350f;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.resource-icon {
    font-size: 0.625rem;
}

.resource-text {
    font-size: 0.75rem;
}

.block-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: 1px solid #16a34a;
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-success.completed {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.btn-ghost {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-ghost:hover {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

.btn-secondary {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #374151;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: 1px solid #1d4ed8;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Day Navigation Styles */
.day-navigation {
    margin-bottom: 2rem;
}

.day-tab {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.day-tab:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.day-tab.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Progress Section Styles */
.progress-section {
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.progress-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.progress-text {
    color: #64748b;
    font-size: 0.875rem;
}

.progress-bar {
    width: 100%;
    height: 0.75rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.completion-section {
    margin-top: 1.5rem;
}

.completion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.completion-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.completion-percentage {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Plan Actions Styles */
.plan-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    gap: 1rem;
}

.toast-message {
    color: #374151;
    font-weight: 500;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

/* Loading Animation */
.loading-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.loading-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.loading-step.active {
    opacity: 1;
    transform: scale(1.05);
}

.step-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.loading-step span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .plan-block {
        padding: 1rem;
    }
    
    .block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .block-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .day-tab {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .plan-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .loading-steps {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animation Keyframes */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.button-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Stepper Styles */
.stepper-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    width: 100%;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-circle.current {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step-circle.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.step-circle.upcoming {
    background: #e2e8f0;
    color: #64748b;
    border: 2px solid #cbd5e1;
}

.step-number {
    display: block;
}

.step-check {
    display: none;
}

.step-circle.completed .step-number {
    display: none;
}

.step-circle.completed .step-check {
    display: block;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.step-label.current {
    color: #3b82f6;
}

.step-label.completed {
    color: #10b981;
}

.step-label.upcoming {
    color: #64748b;
}

.step-connector {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
    transition: background 0.3s ease;
}

.step:last-child .step-connector {
    display: none;
}

.step-connector.completed {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
}

.form-help {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.field-error {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #ef4444;
}

/* Radio and Checkbox Styles */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.radio-option input,
.checkbox-option input {
    display: none;
}

.radio-custom,
.checkbox-custom {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-custom {
    border-radius: 50%;
}

.checkbox-custom {
    border-radius: 0.25rem;
}

.radio-option input:checked + .radio-custom {
    border-color: #3b82f6;
    background: #3b82f6;
    box-shadow: inset 0 0 0 3px white;
}

.checkbox-option input:checked + .checkbox-custom {
    border-color: #3b82f6;
    background: #3b82f6;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
}

.radio-content {
    flex: 1;
}

.radio-title,
.checkbox-label {
    font-weight: 500;
    color: #374151;
}

.radio-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

/* Slider Styles */
.slider-container {
    margin: 1rem 0;
}

.form-slider {
    width: 100%;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-slider::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

#time-display {
    font-weight: 600;
    color: #3b82f6;
}

/* Selected Subject Display */
.selected-subject-display {
    margin-bottom: 2rem;
}

/* Loading Styles */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.loading-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.loading-step.active {
    opacity: 1;
}

.step-icon {
    font-size: 2rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    border-left: 4px solid #3b82f6;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-success {
    border-left-color: #10b981;
}

.toast.toast-error {
    border-left-color: #ef4444;
}

.toast.toast-warning {
    border-left-color: #f59e0b;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    gap: 1rem;
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: background 0.2s ease;
}

.toast-close:hover {
    background: #f3f4f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stepper {
        gap: 1rem;
    }
    
    .step-circle {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .radio-group,
    .checkbox-group {
        gap: 0.5rem;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 0.5rem 0.75rem;
    }
    
    .loading-steps {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .toast {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
}

/* Plan Generation Success Styles */
.success-icon {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Error State Styles */
.error-icon {
    font-size: 4rem;
    color: #ef4444;
}

/* Subject Cards Styles */
.subject-card-modern {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.subject-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-inner {
    position: relative;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subject-card-modern:hover .card-background {
    opacity: 0.1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.icon-container {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon-emoji {
    font-size: 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-tag {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.card-button {
    position: relative;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    align-self: flex-start;
}

.card-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.button-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Form Layout Styles */
.config-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.config-left,
.config-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-section-full {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.form-section-full:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.form-section-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Enhanced Form Inputs */
.form-input-enhanced,
.form-textarea-enhanced {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-input-enhanced:focus,
.form-textarea-enhanced:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-textarea-enhanced {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Enhanced Dropdown Styles */
.dropdown-select {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: left;
}

.dropdown-trigger:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dropdown-trigger.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dropdown-selected {
    color: #374151;
    font-weight: 500;
}

.dropdown-selected.placeholder {
    color: #9ca3af;
}

.dropdown-arrow {
    color: #6b7280;
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.25rem;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    display: block;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: #f8fafc;
}

.dropdown-option input {
    display: none;
}

.dropdown-option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-option-title {
    font-weight: 500;
    color: #374151;
    font-size: 1rem;
}

.dropdown-option-desc {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Enhanced Checkbox Styles */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.checkbox-option-enhanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-option-enhanced:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-1px);
}

.checkbox-option-enhanced input {
    display: none;
}

.checkbox-custom-enhanced {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #d1d5db;
    background: white;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.checkbox-option-enhanced input:checked + .checkbox-custom-enhanced {
    border-color: #3b82f6;
    background: #3b82f6;
}

.checkbox-option-enhanced input:checked + .checkbox-custom-enhanced::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

.checkbox-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.checkbox-icon {
    font-size: 1.25rem;
}

.checkbox-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

/* Enhanced Slider Styles */
.slider-container-enhanced {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.form-slider-enhanced {
    width: 100%;
    height: 0.75rem;
    border-radius: 0.5rem;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
}

.form-slider-enhanced::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.form-slider-enhanced::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.form-slider-enhanced::-moz-range-thumb {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.form-slider-enhanced::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.slider-labels-enhanced {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

#time-display {
    font-weight: 600;
    color: #3b82f6;
    font-size: 1rem;
}

/* Responsive Design for Enhanced Layout */
@media (max-width: 1024px) {
    .config-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-section,
    .form-section-full {
        padding: 1rem;
    }
    
    .form-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .form-section-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .form-section-title {
        font-size: 1rem;
    }
    
    .dropdown-trigger,
    .form-input-enhanced,
    .form-textarea-enhanced {
        padding: 0.875rem 1rem;
    }
    
    .checkbox-option-enhanced {
        padding: 0.75rem;
    }
}

/* Enhanced Duration Selector Styles */
.duration-selector-container {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.duration-selector-container:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.duration-display-large {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.duration-display-large:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.duration-display-large span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.duration-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.duration-slider {
    margin: 1rem 0;
}

.duration-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

.duration-presets {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.duration-preset {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
}

.duration-preset:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-1px);
}

.duration-preset.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #1d4ed8;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Enhanced Slider for Duration */
.duration-slider {
    background: linear-gradient(to right, #e5e7eb 0%, #3b82f6 0%, #e5e7eb 0%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transition: background 0.3s ease;
}

.duration-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    border: 3px solid white;
}

.duration-slider::-moz-range-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    border: 3px solid white;
}

/* Responsive Design for Duration Selector */
@media (max-width: 768px) {
    .duration-selector-container {
        padding: 1rem;
    }
    
    .duration-display-large span {
        font-size: 1.5rem;
    }
    
    .duration-presets {
        gap: 0.5rem;
    }
    
    .duration-preset {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        min-width: 60px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
