/* Systems of Equations Page Styles - Matching Vector Spaces Design */

:root {
    --primary-light: #667eea;
    --primary-dark: #764ba2;
    --secondary-light: #f093fb;
    --secondary-dark: #f5576c;
    --background-light: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --accent-light: #4facfe;
    --accent-dark: #00f2fe;
    --success-light: #43e97b;
    --warning-light: #fad0c4;
    --danger-light: #fbb1bd;
    --info-light: #a6c0fe;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.breadcrumb-nav {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.breadcrumb {
    background: transparent;
    margin: 0;
}

.concept-section {
    padding: 80px 0;
    background: white;
}

.concept-card {
    background: #f8f9fa;
    border-left: 5px solid var(--primary-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.concept-card h3 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 20px;
}

.concept-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.visualization-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
}

.visualization-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.visualization-container h5 {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.types-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-dark));
    display: block;
    margin: 20px auto 0;
    border-radius: 2px;
}

.vs-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 40px 30px;
    margin-bottom: 30px;
    cursor: pointer;
    height: 100%;
    border: 2px solid transparent;
    position: relative;
}

.vs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vs-card:hover::before {
    transform: scaleX(1);
}

.vs-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-light);
}

.vs-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vs-card h3 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.vs-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.btn-explore {
    background: linear-gradient(45deg, var(--secondary-dark), var(--secondary-light));
    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-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.btn-learn {
    background: linear-gradient(45deg, var(--primary-light), var(--primary-dark));
    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;
}

.calculator-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.calculator-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calculator-card h3 {
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.result-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.canvas-container {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.simulation-controls {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.control-group {
    margin-bottom: 15px;
}

.control-label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.badge-keyword {
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    margin: 5px;
    display: inline-flex;
    align-items: center;
}

.badge-keyword i {
    margin-right: 5px;
}

.difference-section {
    padding: 80px 0;
    background: white;
}

.comparison-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.comparison-card h4 {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 15px;
}

.export-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.export-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.exercise-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.exercise-section .card {
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.exercise-section .card-header {
    background: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
    padding: 15px 20px;
}

.exercise-section .btn-link {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    text-align: left;
}

.exercise-section .btn-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.exercise-section .card-body {
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.exercise-section .card-body h6 {
    color: var(--primary-light);
    font-weight: 600;
    margin-top: 20px;
}

.exercise-section .card-body p {
    line-height: 1.8;
}

.mcq-section {
    padding: 80px 0;
    background: white;
}

.mcq-card {
    background: #f8f9fa;
    border-left: 5px solid var(--primary-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mcq-card h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
}

.form-check-label {
    font-weight: 500;
    cursor: pointer;
}

.form-check-input:checked + .form-check-label {
    color: var(--primary-light);
    font-weight: 600;
}

.alert-info {
    border-radius: 8px;
    border: 1px solid var(--primary-light);
    background-color: rgba(66, 133, 244, 0.1);
}

.components-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

.component-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.component-container h5 {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.canvas-container-small {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-container-large {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.component-controls {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.applications-section {
    padding: 80px 0;
    background: white;
}

.application-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.application-card h4 {
    color: var(--primary-light);
    font-weight: 600;
    margin: 15px 0;
}

.app-icon {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.application-card ul {
    padding-left: 20px;
}

.application-card li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.matrix {
    font-family: 'Courier New', monospace;
    display: inline-block;
    text-align: right;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .vs-card {
        padding: 30px 20px;
    }
    
    .canvas-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .canvas-container {
        height: 250px;
    }
    
    .matrix {
        font-size: 0.8rem;
    }
}