/* Modern Clean Modal Styles for Reports Page */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modern Clean Modal Base */
.enhanced-modal {
    display: flex !important;
    flex-direction: column;
    min-width: 600px;
    max-width: 800px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 80vh;
}

.modal-overlay.active .enhanced-modal {
    transform: scale(1);
}

/* Modern Clean Header */
.enhanced-modal .modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.enhanced-modal .modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.enhanced-modal .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.enhanced-modal .close-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Modern Clean Modal Body */
.enhanced-modal .modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    flex: 1;
}

/* Modern Clean Modal Footer */
.enhanced-modal .modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #f8f9fa;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    border: 1px solid transparent;
}

.checkbox-label:hover, .radio-label:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.checkbox-label input, .radio-label input {
    margin: 0;
    accent-color: #667eea;
}

.checkbox-label span, .radio-label span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-weight: 500;
}

.checkbox-label span i, .radio-label span i {
    color: #667eea;
    width: 16px;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Email Input */
.modal-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    margin-top: 1rem;
}

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease;
    z-index: 10001;
}

.notification.success {
    border-left: 4px solid #28a745;
}

.notification.error {
    border-left: 4px solid #dc3545;
}

/* Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 

/* Configuration Modal Specific Styles */

/* Config Grid Layout */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.config-item small {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.config-select {
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: border-color 0.3s ease;
}

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

.config-input {
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

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

/* Permission Matrix */
.permission-matrix {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.permission-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.permission-role {
    font-weight: 600;
    color: #333;
    min-width: 120px;
    font-size: 0.95rem;
}

.permission-controls {
    display: flex;
    gap: 1.5rem;
}

.permission-controls .checkbox-label {
    padding: 0.5rem;
    margin: 0;
    font-size: 0.9rem;
}

.permission-controls .checkbox-label input[disabled] {
    opacity: 0.7;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.kpi-card:hover {
    border-color: #667eea;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.kpi-card input[type="checkbox"] {
    margin: 0;
    accent-color: #667eea;
}

.kpi-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.kpi-content i {
    font-size: 1.2rem;
    color: #667eea;
    width: 20px;
    text-align: center;
}

.kpi-content span {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

/* Section Headers with Icons */
.form-section h3 i {
    color: #667eea;
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Enhanced Button Styles for Config Modal */
.modal-footer .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-footer .btn i {
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .permission-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .permission-controls {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
} 

/* New Report Modal Specific Styles */

/* Report Type Grid */
.report-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.report-type-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.report-type-card:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.report-type-card i {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.report-type-card h4 {
    color: #333;
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.report-type-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0.5rem 0 1rem;
    flex-grow: 1;
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Options */
.quick-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.quick-options .checkbox-label {
    padding: 0.5rem 0;
    margin: 0;
    font-size: 0.95rem;
}

.quick-options .checkbox-label input {
    accent-color: #667eea;
}

.quick-options .checkbox-label span {
    color: #333;
    font-weight: 500;
}

/* Enhanced Footer for New Report Modal */
.enhanced-modal .modal-footer .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

/* Responsive adjustments for New Report Modal */
@media (max-width: 768px) {
    .report-type-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .report-type-card {
        min-height: 160px;
        padding: 1.25rem;
    }
    
    .report-type-card i {
        font-size: 2rem;
    }
    
    .card-badge {
        position: static;
        align-self: flex-start;
        margin-bottom: 0.5rem;
    }
} 

/* AI Generate Report Modal Specific Styles */

/* AI Status and Introduction */
.ai-intro-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.ai-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.ai-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    animation: aiPulse 2s infinite;
}

.ai-status-dot.active {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes aiPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ai-description {
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

/* AI Prompt Input */
.ai-prompt-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

.ai-prompt-input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Prompt Suggestions */
.prompt-suggestions {
    margin-top: 1rem;
}

.suggestion-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.suggestion-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-pill {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.suggestion-pill:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

/* AI Options Grid */
.ai-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.ai-option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-option label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Data Sources Preview */
.data-sources-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.data-source-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.data-source-item i {
    color: #667eea;
    width: 20px;
    text-align: center;
}

.data-source-item span {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.data-status {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
}

.auto-label {
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

/* AI Processing Section */
.ai-processing-section {
    text-align: center;
    padding: 3rem 2rem;
}

.ai-processing-content h4 {
    color: #333;
    margin: 1rem 0 2rem;
    font-size: 1.3rem;
}

.ai-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.processing-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.processing-step.active {
    opacity: 1;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.processing-step.completed {
    opacity: 1;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.processing-step i {
    color: #667eea;
    width: 20px;
    text-align: center;
}

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

/* AI Report Preview Styles */
.ai-report-preview {
    padding: 1rem 0;
}

.ai-report-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ai-report-header h3 {
    color: #333;
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
}

.report-description {
    color: #666;
    font-style: italic;
    margin: 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* AI Insights */
.ai-insights-summary {
    margin: 2rem 0;
}

.ai-insights-summary h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.insight-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.insight-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.insight-metric {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.insight-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.insight-trend {
    font-size: 0.9rem;
    color: #10b981;
}

/* AI Recommendations */
.ai-recommendations {
    margin: 2rem 0;
}

.ai-recommendations h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.recommendation-item i {
    color: #f59e0b;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.recommendation-item strong {
    color: #333;
}

/* Report Actions */
.report-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Responsive adjustments for AI Modal */
@media (max-width: 768px) {
    .ai-options-grid {
        grid-template-columns: 1fr;
    }
    
    .data-sources-preview {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestion-pills {
        flex-direction: column;
    }
    
    .suggestion-pill {
        text-align: center;
    }
    
    .report-actions {
        flex-direction: column;
    }
    
    .report-actions .btn {
        width: 100%;
    }
} 

/* AI Schedule Report Modal Specific Styles */

/* Schedule Tabs */
.schedule-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tab-btn i {
    font-size: 1rem;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

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

/* Quick Schedule Grid */
.quick-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.quick-option-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-option-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.quick-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.quick-option-card h4 {
    color: #333;
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.quick-option-card p {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.schedule-preview {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Schedule Configuration Grid */
.schedule-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-group.full-width {
    grid-column: 1 / -1;
}

.config-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.config-input {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

/* Delivery Configuration */
.delivery-config {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Trigger Options */
.trigger-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.template-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.template-card:hover::before {
    transform: scaleX(1);
}

.template-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.template-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.template-card h4 {
    color: #333;
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.template-card p {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.template-schedule {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Schedule Preview Section */
.schedule-preview-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
}

.schedule-preview-section h3 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.preview-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.preview-timeline {
    padding: 1.5rem;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.timeline-time {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-content {
    color: #333;
    font-weight: 500;
    text-align: right;
}

/* Button States for Schedule Modal */
#saveScheduleBtn.saving {
    background: #6c757d;
    cursor: not-allowed;
}

#saveScheduleBtn.saved {
    background: #28a745;
}

/* Responsive Design for Schedule Modal */
@media (max-width: 768px) {
    .schedule-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        justify-content: flex-start;
    }
    
    .quick-schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-config-grid {
        grid-template-columns: 1fr;
    }
    
    .delivery-config {
        grid-template-columns: 1fr;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .timeline-content {
        text-align: left;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Animation for schedule cards */
.quick-option-card,
.template-card {
    animation: slideInUp 0.4s ease;
}

.quick-option-card:nth-child(2) {
    animation-delay: 0.1s;
}

.quick-option-card:nth-child(3) {
    animation-delay: 0.2s;
}

.quick-option-card:nth-child(4) {
    animation-delay: 0.3s;
}

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

/* AI Customize Reports Modal Specific Styles */

/* Customize Tabs (reuse schedule tabs styling) */
.customize-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

/* Layout Options */
.layout-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.layout-choice {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.layout-choice.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.layout-preview {
    width: 100%;
    height: 80px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

/* Layout Styles */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 8px;
    height: 100%;
}

.grid-item {
    background: #667eea;
    border-radius: 4px;
}

.layout-sidebar {
    display: flex;
    height: 100%;
}

.sidebar-nav {
    width: 25%;
    background: #667eea;
    border-radius: 4px 0 0 4px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
}

.content-block {
    flex: 1;
    background: #764ba2;
    border-radius: 4px;
}

.layout-masonry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 8px;
    height: 100%;
}

.masonry-item {
    background: #667eea;
    border-radius: 4px;
}

.masonry-item.tall {
    grid-row: span 2;
}

.layout-executive {
    display: flex;
    flex-direction: column;
    padding: 4px;
    height: 100%;
    gap: 4px;
}

.exec-header {
    height: 20%;
    background: #667eea;
    border-radius: 4px;
}

.exec-kpis {
    display: flex;
    gap: 4px;
    height: 30%;
}

.kpi-mini {
    flex: 1;
    background: #10b981;
    border-radius: 4px;
}

.exec-charts {
    flex: 1;
    background: #764ba2;
    border-radius: 4px;
}

.layout-choice h4 {
    margin: 0.5rem 0 0.25rem;
    color: #333;
    font-weight: 600;
}

.layout-choice p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Display Preferences */
.preference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.pref-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pref-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Widget Library */
.widget-library {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget-category h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.widget-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.widget-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.15);
}

.widget-preview {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.widget-item span {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.widget-item input[type="checkbox"] {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Dashboard Preview */
.arrangement-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.preview-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.dashboard-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    min-height: 120px;
}

.preview-widget {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    cursor: move;
    transition: all 0.3s ease;
}

.preview-widget:hover {
    border-color: #667eea;
    transform: scale(1.02);
}

.preview-widget.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.preview-help {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 0;
    padding: 0 1rem 1rem;
}

/* Theme Gallery */
.theme-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.theme-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.theme-option.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.theme-preview {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-header {
    height: 30%;
    background: #667eea;
}

.theme-content {
    height: 70%;
    display: flex;
    gap: 4px;
    padding: 4px;
}

.theme-card {
    flex: 1;
    background: #e9ecef;
    border-radius: 4px;
}

/* Theme Variations */
.theme-preview.professional .theme-header { background: #0066cc; }
.theme-preview.professional .theme-card { background: #e6f2ff; }

.theme-preview.modern .theme-header { background: linear-gradient(135deg, #667eea, #764ba2); }
.theme-preview.modern .theme-card { background: #f0f0ff; }

.theme-preview.minimal .theme-header { background: #6c757d; }
.theme-preview.minimal .theme-card { background: #f8f9fa; }

.theme-preview.dark .theme-header { background: #212529; }
.theme-preview.dark .theme-card { background: #343a40; }

.theme-option h4 {
    margin: 0.5rem 0 0.25rem;
    color: #333;
    font-weight: 600;
}

.theme-option p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Color Customizer */
.color-customizer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.color-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.color-group input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.color-group input[type="color"]:hover {
    border-color: #667eea;
}

.color-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.color-preview .preview-card {
    background: white;
}

.color-preview .preview-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.color-preview .preview-content {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    border: none;
}

.preview-button.primary {
    background: #667eea;
}

.preview-button.secondary {
    background: #764ba2;
}

.preview-badge {
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* AI Features */
.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.ai-feature-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.feature-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.ai-feature-card h4 {
    color: #333;
    margin: 0.5rem 0;
    font-weight: 600;
}

.ai-feature-card p {
    color: #666;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #667eea;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Role Profiles */
.role-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.role-profile {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.role-profile.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.role-profile h4 {
    color: #333;
    margin: 0.5rem 0;
    font-weight: 600;
}

.role-profile p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* AI Recommendations */
.ai-recommendations {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.recommendation i {
    color: #667eea;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.recommendation div {
    flex: 1;
}

.recommendation strong {
    color: #333;
}

.btn-apply {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-apply:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* Responsive Design for Customize Modal */
@media (max-width: 768px) {
    .layout-options {
        grid-template-columns: 1fr;
    }
    
    .preference-grid {
        grid-template-columns: 1fr;
    }
    
    .widget-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .theme-gallery {
        grid-template-columns: 1fr;
    }
    
    .color-customizer {
        grid-template-columns: 1fr;
    }
    
    .ai-features {
        grid-template-columns: 1fr;
    }
    
    .role-profiles {
        grid-template-columns: 1fr;
    }
    
    .dashboard-preview {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .color-preview .preview-content {
        flex-direction: column;
    }
    
    .recommendation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-apply {
        width: 100%;
    }
} 

/* AI Advanced Filters Modal Specific Styles */

/* Filter Tabs (reuse existing tab styles) */
.filter-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

/* Smart Filter Input */
.smart-filter-input {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.smart-filter-input .ai-prompt-input {
    flex: 1;
}

.smart-filter-input .btn {
    white-space: nowrap;
}

/* Quick Filters Grid */
.quick-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.filter-category h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;
}

.filter-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Priority-specific button colors */
.filter-btn.critical { border-color: #dc3545; color: #dc3545; }
.filter-btn.critical:hover, .filter-btn.critical.active { background: #dc3545; border-color: #dc3545; color: white; }

.filter-btn.high { border-color: #fd7e14; color: #fd7e14; }
.filter-btn.high:hover, .filter-btn.high.active { background: #fd7e14; border-color: #fd7e14; color: white; }

.filter-btn.medium { border-color: #ffc107; color: #856404; }
.filter-btn.medium:hover, .filter-btn.medium.active { background: #ffc107; border-color: #ffc107; color: #856404; }

.filter-btn.low { border-color: #28a745; color: #28a745; }
.filter-btn.low:hover, .filter-btn.low.active { background: #28a745; border-color: #28a745; color: white; }

/* Filter Builder */
.filter-builder {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.filter-field,
.filter-operator {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.filter-field:focus,
.filter-operator:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-value {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

/* Sort Options */
.sort-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.sort-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sort-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* Filter Preview */
.filter-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.filter-preview .preview-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    font-weight: 600;
}

.filter-preview .preview-content {
    padding: 1.5rem;
    background: #fff;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    min-height: 80px;
}

.filter-preview code {
    color: #333;
    background: none;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Saved Filters */
.saved-filters-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.saved-filter-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.saved-filter-item:hover {
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.1);
}

.filter-info h4 {
    color: #333;
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-info p {
    color: #666;
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.filter-meta {
    color: #999;
    font-size: 0.85rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sm.btn-primary {
    background: #667eea;
    color: white;
}

.btn-sm.btn-primary:hover {
    background: #5a67d8;
}

.btn-sm.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-sm.btn-secondary:hover {
    background: #545b62;
}

.btn-sm.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-sm.btn-danger:hover {
    background: #c82333;
}

/* Filter Templates */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.filter-template-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.filter-template-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.template-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.filter-template-card h4 {
    color: #333;
    margin: 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.filter-template-card p {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.template-preview {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Filter Results Section */
.filter-results-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
}

.filter-results-section h3 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Responsive Design for Advanced Filters Modal */
@media (max-width: 768px) {
    .smart-filter-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .sort-options {
        grid-template-columns: 1fr;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .btn-outline {
        width: 100%;
    }
    
    .saved-filter-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
} 