/* Settings UI Enhancement CSS - Extends existing styles.css */

/* Settings-Specific Layout Enhancements */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.settings-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.settings-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 300;
}

.settings-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Interactive Module Cards */
.settings-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.module-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.module-card:hover::before {
    transform: translateX(0);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.module-card h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.module-card p {
    color: #7f8c8d;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.module-features li {
    padding: 0.25rem 0;
    color: #34495e;
    font-size: 0.9rem;
}

.module-features li::before {
    content: '✓';
    color: #27ae60;
    font-weight: bold;
    margin-right: 0.5rem;
}

.module-card .btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.module-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* Progressive Disclosure Components */
.collapsible-section {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.collapsible-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.collapsible-header:hover {
    background: #e9ecef;
}

.collapsible-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.collapsible-toggle {
    font-size: 1.2rem;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.collapsible-section.expanded .collapsible-toggle {
    transform: rotate(180deg);
}

.collapsible-content {
    padding: 1.5rem;
    display: none;
}

.collapsible-section.expanded .collapsible-content {
    display: block;
}

/* Tabbed Interface */
.tabs-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button.active {
    color: #3498db;
    background: white;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3498db;
}

.tab-content {
    padding: 2rem;
    display: none;
}

.tab-content.active {
    display: block;
}

/* Interactive Configuration Components */
.config-wizard {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.wizard-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.wizard-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.wizard-step.active .wizard-step-circle {
    background: #3498db;
    color: white;
}

.wizard-step.completed .wizard-step-circle {
    background: #27ae60;
    color: white;
}

.wizard-step-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.wizard-step.active .wizard-step-label {
    color: #3498db;
    font-weight: 500;
}

/* Code Block Enhancements */
.code-block-container {
    position: relative;
    margin: 1.5rem 0;
}

.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-x: auto;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.copy-button.copied {
    background: #27ae60;
    color: white;
}

/* Alert and Status Components */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.alert-success {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.alert-warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #ef6c00;
}

.alert-danger {
    background: #ffebee;
    border-color: #f44336;
    color: #d32f2f;
}

/* Role-Based Content */
.role-content {
    border-left: 4px solid #3498db;
    padding: 1rem;
    margin: 1rem 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #3498db;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.role-admin .role-badge {
    background: #e74c3c;
}

.role-manager .role-badge {
    background: #f39c12;
}

.role-user .role-badge {
    background: #27ae60;
}

/* Progress Indicators */
.progress-container {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-modules {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .module-card {
        padding: 1rem;
    }
    
    .settings-header h1 {
        font-size: 2rem;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
    }
    
    .wizard-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .wizard-steps::before {
        display: none;
    }
}

/* Accessibility Enhancements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Indicators */
.tab-button:focus,
.collapsible-header:focus,
.copy-button:focus,
.btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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

/* Print Styles */
@media print {
    .module-card, .collapsible-section, .tabs-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .collapsible-content {
        display: block !important;
    }
    
    .tab-content {
        display: block !important;
    }
    
    .copy-button {
        display: none;
    }
}