/* Responsive Improvements */
@media (max-width: 768px) {
    .theme-controls {
        top: 10px;
        right: 10px;
    }
    
    .theme-toggle, .palette-toggle {
        width: 40px;
        height: 40px;
    }
    
    .color-palette {
        top: 60px;
        right: 10px;
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.8rem;
        margin-top: 15px;
    }
    
    .app-container {
        margin-top: 20px;
    }
    
    .settings-content {
        padding: 15px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-content p {
        font-size: 1.1rem;
    }
}

/* Hover effects for inputs and controls */
.input-with-icon input:hover,
#essay-content:hover {
    border-color: var(--primary-color);
}

.switch:hover .slider {
    background-color: #aaa;
}

input:checked + .slider:hover {
    background-color: var(--primary-dark);
}

/* Add box-shadow transition to all cards */
.settings-panel, .content-panel, .progress-panel {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.settings-panel:hover, .content-panel:hover, .progress-panel:hover {
    box-shadow: var(--shadow), 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Fix alignment of milestone dots with the progress bar */
.milestone-progress {
    height: 60px;
    padding-top: 5px;
}

.milestone-progress:before {
    top: 20px;
}

/* Improve focus indicators for accessibility */
button:focus, 
input:focus, 
textarea:focus, 
.switch input:focus + .slider {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 79, 109, 245), 0.3);
}

/* Animation for color changes */
.color-option:hover .color-circle {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Make progress bar more visible */
.progress-bar-container {
    height: 24px;
}

/* Better spacing for settings panel */
.setting-group:last-child, .toggle-group:last-child {
    margin-bottom: 0;
}
