/* Biomolecules Chemistry Page Styles */

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 2rem 0;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Keywords Badges */
.keywords-badges .badge {
    font-size: 0.85rem;
    padding: 0.5em 0.75em;
    margin-bottom: 0.25rem;
}

/* Navigation Section */
.section-navigation .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.section-navigation .nav-link:hover {
    text-decoration: underline;
    color: #007bff !important;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Canvas Container */
.canvas-container {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

#biomoleculeCanvas {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* Data Display */
.data-display {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e9ecef;
}

.data-label {
    font-weight: 600;
    color: #495057;
}

.data-value {
    color: #6c757d;
    font-weight: 500;
}

/* MCQ Styles */
.mcq-container {
    margin-top: 1.5rem;
}

.answer-section {
    margin-top: 1rem;
}

/* Visualization Controls */
.visualization-controls {
    margin: 1rem 0;
}

/* Roadmap Styles */
.roadmap-container {
    position: relative;
    padding: 2rem 0;
}

.roadmap-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 3px;
    background: #dee2e6;
    border-radius: 3px;
}

.roadmap-step {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 50px;
}

.roadmap-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 10px;
    top: 0;
    width: 30px;
    height: 30px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.step-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Virtual Lab Styles */
.virtual-lab-container {
    margin-top: 1.5rem;
}

.experiment-container {
    padding: 15px;
}

.experiment-setup {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.experiment-results {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background-color: #fff;
}

.results-display {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
}

.experiment-controls {
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .roadmap-container::before {
        left: 10px;
    }
    
    .roadmap-step {
        padding-left: 40px;
    }
    
    .step-number {
        left: 5px;
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .data-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-label {
        margin-bottom: 0.25rem;
    }
}

/* Accessibility Features */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --secondary-color: #666666;
        --background-color: #ffffff;
        --text-color: #000000;
    }
    
    body {
        background-color: var(--background-color);
        color: var(--text-color);
    }
    
    .card {
        border: 1px solid var(--secondary-color);
    }
    
    .data-row {
        border-bottom: 1px solid var(--secondary-color);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .card-header {
        color: #fff !important;
    }
    
    .data-row {
        border-bottom: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .card {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }
    
    .card-header {
        background-color: #2d2d2d !important;
    }
    
    .canvas-container {
        background-color: #2d2d2d;
    }
    
    .data-display {
        background-color: #2d2d2d;
    }
    
    .step-content {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    .form-control {
        background-color: #333;
        color: #e0e0e0;
        border: 1px solid #555;
    }
}