/* Main Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
}

/* Card Styling */
.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-header {
    font-weight: bold;
}

/* Module Cards */
.module-card {
    transition: all 0.3s ease;
    height: 100%;
}

.module-card .card-body {
    padding: 1.5rem;
}

.module-img {
    max-height: 150px;
    transition: transform 0.5s;
}

.scale-animation {
    transform: scale(1.05);
}

/* Animation Effects */
.animated-diagram {
    transition: transform 0.5s ease;
}

.animated-diagram:hover {
    transform: scale(1.05);
}

/* Login Animation */
.login-animation {
    margin-bottom: 20px;
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 5px;
    margin: 15px 0;
}

.progress-bar {
    transition: width 1s ease-in-out;
}

/* Quiz Styling */
.options-container .form-check {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    transition: background-color 0.2s;
}

.options-container .form-check:hover {
    background-color: #f8f9fa;
}

.options-container .form-check-input:checked + .form-check-label {
    font-weight: bold;
}

/* Classification Game Styling */
.classification-container, .matching-container {
    min-height: 150px;
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    padding: 10px;
    background-color: #f8f9fa;
}

.classification-item, .matching-item {
    cursor: grab;
    margin: 5px;
    transition: transform 0.2s;
}

.classification-item:hover, .matching-item:hover {
    transform: scale(1.05);
}

.classification-item:active, .matching-item:active {
    cursor: grabbing;
}

/* Biomolecule Explorer */
.biomolecule-selector {
    width: 100%;
    margin-bottom: 20px;
}

.biomolecule-selector .btn {
    flex: 1;
    padding: 10px 0;
}

/* Principles & Key Components */
.principles-container .principle-card,
.key-components li {
    transition: transform 0.3s;
}

.principles-container .principle-card:hover,
.key-components li:hover {
    transform: translateX(5px);
    background-color: #f0f0f0 !important;
}

/* Icon Boxes */
.icon-box {
    padding: 15px 0;
    transition: transform 0.3s;
}

.icon-box:hover {
    transform: translateY(-5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .principles-container, .key-components {
        font-size: 0.9rem;
    }
}

/* Tab Navigation */
.nav-tabs .nav-link {
    color: #495057;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-tabs .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-tabs .nav-link.active {
    border-bottom: 3px solid #007bff;
}

/* Custom Colors for Biomolecule Types */
.text-carbohydrates { color: #007bff; }
.text-lipids { color: #ffc107; }
.text-proteins { color: #28a745; }
.text-nucleic-acids { color: #dc3545; }

/* Experimental Design Specific */
.experiment-example {
    transition: all 0.3s ease;
}

.experiment-example:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Cell Theory Specific */
.cell-types, .biotic-abiotic {
    transition: all 0.3s ease;
}

.cell-types:hover, .biotic-abiotic:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Biomolecules Specific */
.biomolecule-card {
    transition: all 0.3s ease;
}

.biomolecule-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navbar Styling */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Footer Styling */
.footer {
    margin-top: 50px;
    border-top: 1px solid #dee2e6;
}