/* Integrals Page Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 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;
}

.definition-section {
    padding: 80px 0;
    background: white;
}

.definition-card {
    background: #f8f9fa;
    border-left: 5px solid #667eea;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.definition-card h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
}

.definition-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;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: block;
    margin: 20px auto 0;
    border-radius: 2px;
}

.visualization-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
}

.visualization-container canvas {
    border: 1px solid #eee;
    border-radius: 5px;
    max-width: 100%;
    height: auto;
}

.visualization-container h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

.control-panel {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.compact-controls {
    max-height: 500px;
    overflow-y: auto;
}

.control-panel h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
}

.btn-explore {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    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;
}

.rules-section {
    padding: 80px 0;
    background: white;
}

.rule-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.rule-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rule-card h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.rule-formula {
    background: #eef2f7;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.rule-formula p {
    margin-bottom: 5px;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.example {
    background: #eef2f7;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.example strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.example p {
    margin-bottom: 3px;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

.visualization-container {
    background: #eef2f7;
    border-radius: 5px;
    text-align: center;
    padding: 10px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    margin-bottom: 15px;
    flex-grow: 1;
}

.visualization-container canvas {
    border: 1px dashed #ccc;
    max-width: 100%;
}

.rule-detail-btn {
    margin-top: auto;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rule-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.keywords-container {
    margin-top: 15px;
}

.keyword-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.applications-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.application-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.app-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.application-card h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

.application-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.application-card ul {
    padding-left: 20px;
}

.application-card li {
    margin-bottom: 8px;
    color: #7f8c8d;
}

.comparison-section {
    padding: 80px 0;
    background: white;
}

.comparison-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.comparison-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.comparison-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-description {
    flex: 1;
    padding: 15px;
}

.field-description h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

.field-description ul {
    padding-left: 20px;
}

.field-description li {
    margin-bottom: 8px;
    color: #7f8c8d;
}

.vs-divider {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    padding: 0 20px;
}

.export-import-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.export-card, .import-card, .diff-fields-card, .tech-applications-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.export-card .card-header, .import-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.diff-fields-card .card-header, .tech-applications-card .card-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.export-options .btn, .import-options .btn {
    transition: all 0.3s ease;
}

.export-options .btn:hover, .import-options .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.field-comparison {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.field-comparison h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

.field-comparison p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.tech-applications-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tech-card {
    display: flex;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tech-icon {
    font-size: 2rem;
    color: #ff6b6b;
    margin-right: 15px;
    align-self: flex-start;
}

.tech-content h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.tech-content p {
    color: #7f8c8d;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.highlight-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 20px;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.8;
}

.quote-author {
    font-weight: 600;
    opacity: 0.9;
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

.modal-body {
    padding: 30px;
}

.formula {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    margin: 15px 0;
    border-left: 4px solid #667eea;
}

.example {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.example p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .comparison-content {
        flex-direction: column;
    }
    
    .vs-divider {
        padding: 20px 0;
        transform: rotate(90deg);
    }
    
    .compact-controls {
        max-height: none;
    }
    
    .tech-applications-content {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* Canvas Container */
.canvas-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

/* Loading Spinner */
.spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(102, 126, 234, 0.3);
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.exercises-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.exercises-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.exercises-section .section-title h2 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.exercises-section .section-title p {
    color: #7f8c8d;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.card {
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
    padding: 20px 25px;
}

.btn-link {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    width: 100%;
    text-align: left;
    padding: 0;
}

.btn-link:hover {
    color: #764ba2;
    text-decoration: none;
}

.btn-link:focus {
    box-shadow: none;
    text-decoration: none;
}

.card-body {
    background: #f8f9fa;
    border-radius: 0 0 10px 10px !important;
}

.card-body h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-body p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-body ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.card-body li {
    margin-bottom: 10px;
    color: #7f8c8d;
}

.solution {
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 0 5px 5px 0;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 15px;
}

.mcq-section {
    padding: 80px 0;
    background: white;
}

.mcq-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.mcq-section .section-title h2 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.mcq-section .section-title p {
    color: #7f8c8d;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.mcq-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
}

.mcq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.mcq-card h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

.mcq-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.options .form-check {
    margin-bottom: 10px;
}

.options .form-check-label {
    color: #2c3e50;
    font-weight: 500;
}

.show-answer-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 15px;
    margin-bottom: 15px;
}

.show-answer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: white;
}

.answer {
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 0 5px 5px 0;
    margin-top: 15px;
}

.correct-answer {
    color: #27ae60;
    font-weight: 600;
}
