/* Regression Analysis Specific Styles */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn-explore {
    background: white;
    color: #667eea;
    border: none;
    font-weight: 600;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: #667eea;
}

.section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 20px auto 0;
}

.definition-card, .concept-card, .simulation-card, .calculator-card, 
.comparison-card, .export-card, .import-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 30px;
}

.definition-card:hover, .concept-card:hover, .simulation-card:hover, 
.calculator-card:hover, .comparison-card:hover, .export-card:hover, 
.import-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.definition-card h2, .concept-card h3, .simulation-card h3, 
.calculator-card h3, .comparison-card h3, .export-card h3, .import-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.definition-card p, .concept-card p, .simulation-card p, 
.calculator-card p, .comparison-card p, .export-card p, .import-card p {
    color: #555;
    line-height: 1.8;
}

.keyword-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
}

.keyword-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.keyword-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.keyword-badge i {
    margin-right: 8px;
}

.btn-learn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-learn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.simulation-controls {
    background: #f1f2f6;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.form-control-range {
    width: 100%;
}

.control-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: block;
}

.control-value {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.btn-simulate, .btn-calculate {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-weight: 600;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 10px 5px;
}

.btn-simulate:hover, .btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    color: white;
}

.result-container {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.result-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.canvas-container {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    text-align: center;
}

.canvas-container canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.calculator-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.comparison-table th {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tr:hover {
    background: #e3f2fd;
}

/* Export/Import Section */
.export-card, .import-card {
    text-align: center;
}

.export-card h3, .import-card h3 {
    justify-content: center;
}

.export-card p, .import-card p {
    margin-bottom: 25px;
}

.form-control-file {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f8f9fa;
}

.btn-export, .btn-import {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-weight: 600;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.btn-export:hover, .btn-import:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    color: white;
}

.btn-export.btn-lg, .btn-import.btn-lg {
    padding: 15px 25px;
    font-size: 1.1rem;
}

/* Canvas Container */
.canvas-container {
    position: relative;
    margin: 20px 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .definition-card, .concept-card, .simulation-card, .calculator-card, 
    .comparison-card, .export-card, .import-card {
        padding: 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .definition-card, .concept-card, .simulation-card, .calculator-card, 
    .comparison-card, .export-card, .import-card {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .definition-card h2, .concept-card h3, .simulation-card h3, 
    .calculator-card h3, .comparison-card h3, .export-card h3, .import-card h3 {
        color: #ffffff;
    }
    
    .definition-card p, .concept-card p, .simulation-card p, 
    .calculator-card p, .comparison-card p, .export-card p, .import-card p {
        color: #b0b0b0;
    }
    
    .form-control {
        background: #3d3d3d;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .control-label {
        color: #e0e0e0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }
    
    .hero-section {
        background: #000;
        color: white;
    }
    
    .simulation-card, .calculator-card, .concept-card, 
    .comparison-card, .export-card, .import-card,
    .mcq-card, .visualization-card, .application-card, .exercises-section .card {
        border: 2px solid black;
    }
    
    .definition-card {
        border-left: 5px solid black;
    }
    
    .result-box:hover {
        transform: none;
    }
}

/* Exercises Section Styles */
.exercises-section .card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 20px;
}

.exercises-section .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 10px 10px 0 0 !important;
}

.exercises-section .btn-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    text-align: left;
    width: 100%;
}

.exercises-section .btn-link:hover {
    color: #764ba2;
    text-decoration: none;
}

.exercises-section .card-body {
    background: white;
}

.exercises-section h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-top: 20px;
}

.exercises-section ul {
    padding-left: 20px;
}

.exercises-section li {
    margin-bottom: 8px;
}

/* MCQ Section Styles */
.mcq-card {
    transition: all 0.3s ease;
}

.mcq-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.mcq-card h5 {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.options .form-check {
    margin-bottom: 8px;
}

.btn-answer {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-answer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
}

.answer {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border-left: 4px solid #667eea;
}

.answer strong {
    color: #2c3e50;
}

/* Visualization Section Styles */
.visualization-card {
    transition: all 0.3s ease;
}

.visualization-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.visualization-card h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
}

.visualization-card canvas {
    background: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.controls {
    background: #f1f2f6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Applications Section Styles */
.application-card {
    transition: all 0.3s ease;
    height: 100%;
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.application-card h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

.application-card ul {
    padding-left: 20px;
}

.application-card li {
    margin-bottom: 8px;
}

/* Focus Styles for Keyboard Navigation */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #667eea;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Print Styles */
@media print {
    .hero-section, .breadcrumb-nav, .simulation-controls, 
    .btn-simulate, .btn-calculate, .btn-export, .btn-import,
    .export-options, .import-options, .export-history,
    .btn-answer, .controls {
        display: none;
    }
    
    .simulation-card, .calculator-card, .concept-card, 
    .comparison-card, .export-card, .import-card,
    .mcq-card, .visualization-card, .application-card, .exercises-section .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    body {
        background: white;
        color: black;
    }
}