/*
================================================================================
CHORESTAR UI POLISH LAYER (clean-ui.css)  
================================================================================

PURPOSE: Visual refinements and UI polish
ROLE: Enhancement layer - ONLY refines existing styles from style.css

CONTAINS:
- ✨ Visual Polish (reduced emoji sizes, cleaner typography)
- 🎯 Selective Overrides (only where needed for better UX)
- 📐 Smart Footer Component (unique to this file)
- 🧹 Consistency Fixes (standardize spacing, weights)
- 🔍 Enhanced Focus States

RULES:
- NEVER define new components - only enhance existing ones
- NEVER reference undefined CSS variables  
- Only override specific properties, not entire selectors
- Keep overrides minimal and purposeful
- Document why each override is needed

LOADING ORDER: Loads SECOND (after style.css) to apply refinements
================================================================================
*/

/* Cleaner navigation icons */
.nav-icon, .mobile-menu-icon {
    font-size: 1.1em;
    opacity: 0.8;
    font-weight: normal;
}

/* Cleaner modal headers */
.modal-header h2 {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

/* Cleaner section headers */
.settings-section h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

/* Cleaner tab buttons */
.tab-btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-btn:hover:not(.active) {
    background: var(--background-hover);
    border-color: var(--border-hover);
}

/* Cleaner form labels */
.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: block;
    font-size: 0.9rem;
}

/* Button refinements - Only add properties that enhance the base styles */
.btn {
    font-weight: 500; /* Slightly heavier than base */
}

/* Remove redundant button definitions - let style.css handle all button styling */

/* Cleaner status indicators */
.status-clean {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-complete {
    background: var(--success-light, #e8f5e8);
    color: var(--success-color, #2d5a2d);
}

.status-pending {
    background: var(--warning-light, #fff3cd);
    color: var(--warning-color, #856404);
}

/* Cleaner card headers */
.card-header h3 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Cleaner dashboard stats */
.stat-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* Cleaner icons in general */
.icon-clean {
    opacity: 0.7;
    font-size: 1em;
}

/* Reduce emoji size in specific contexts */
.nav-icon, .mobile-menu-icon, .tab-btn span {
    font-size: 1em !important;
    line-height: 1;
}

/* Form input refinements - Only enhance, don't override base styles */
input:focus, select:focus, textarea:focus {
    /* Enhanced focus state with cleaner shadow */
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Cleaner select options */
select option {
    padding: 0.5rem;
}

/* Cleaner help text */
small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
}

/* Cleaner empty states */
.empty-state h2 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Loading state refinements - only enhance existing styles */
/* Note: Base .loading-spinner styles are in style.css */

/* Toast notification refinements - only enhance existing styles */  
/* Note: Base .toast styles are in style.css */
.toast {
    /* Enhanced shadow for better depth */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-icon, .mobile-menu-icon {
        font-size: 1em;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .settings-section h4 {
        font-size: 0.95rem;
    }
}

/* Smart Footer Styles - Professional and Clean */
.smart-footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    margin-top: 3rem;
    position: relative;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-settings {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-setting-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.footer-setting-group:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.footer-label {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 500;
}

.footer-select {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    min-width: 80px;
}

.footer-select:focus {
    color: #111827;
}


.footer-info {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    justify-content: center;
}

.footer-brand {
    font-weight: 700;
    color: #374151;
    font-size: 0.9rem;
}

.footer-separator {
    opacity: 0.6;
    font-weight: bold;
}

.footer-version {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    opacity: 0.8;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Mobile Footer Adjustments */
@media (max-width: 768px) {
    .smart-footer {
        padding: 1rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .footer-settings {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-setting-group {
        padding: 0.4rem 0.6rem;
    }
    
    .footer-info {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .footer-settings {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-setting-group {
        width: auto;
        min-width: 140px;
    }
}

/* Dark mode adjustments - Use YOUR dark theme styles */
[data-theme="dark"] .smart-footer {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .footer-select {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .footer-action-btn {
    background: var(--button-bg);
    border-color: var(--border-color);
    color: var(--button-text);
}

[data-theme="dark"] .footer-action-btn:hover {
    background: var(--button-hover);
    border-color: var(--border-color);
}

[data-theme="dark"] .footer-label-text {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-info {
    color: var(--text-secondary);
}
