/* Grundläggande stilar */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

h1, h2, h3, h4 {
    color: #2c3e50;
}

/* Flikstil */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab-btn:hover {
    background-color: #e9e9e9;
}

.tab-btn.active {
    background-color: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.tab-btn:disabled {
    background-color: #f9f9f9;
    color: #aaa;
    cursor: not-allowed;
}

/* Innehållspaneler */
.tab-pane {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background-color: #fff;
}

.tab-pane.active {
    display: block;
}

/* Uppgiftssektionen */
.task-description {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #2c3e50;
}

.task-image-container {
    margin: 20px 0;
    text-align: center;
}

.task-image {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.image-fallback {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 5px;
    text-align: center;
    color: #666;
}

.note {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #fff8dc;
    border-left: 4px solid #f0e68c;
    border-radius: 5px;
}

/* Info-box för diagrammet */
.info-box {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e8f4f8;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.info-box ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

.diagram-highlight {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

/* Viktiga punkter i diagrammet */
.important-points {
    margin-top: 25px;
    padding: 15px;
    background-color: #f0f4f8;
    border-radius: 5px;
    border-left: 4px solid #5d6d7e;
}

.important-points h3 {
    margin-top: 0;
    color: #2c3e50;
}

.important-points ul li {
    margin-bottom: 8px;
}

.important-points ul li ul {
    margin-top: 5px;
}

/* Slutsatssektionen */
.conclusion {
    margin-top: 30px;
    padding: 15px;
    background-color: #eaf7ea;
    border-radius: 5px;
    border-left: 4px solid #28a745;
}

/* Quiz-sektion */
.quiz-container {
    margin-top: 20px;
}

.quiz-question {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #2c3e50;
}

.quiz-options {
    margin: 10px 0;
}

.quiz-options label {
    display: block;
    margin: 8px 0;
    padding: 8px;
    background-color: #f1f1f1;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quiz-options label:hover {
    background-color: #e9e9e9;
}

.quiz-options input {
    margin-right: 10px;
}

#check-answers {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#check-answers:hover {
    background-color: #1a2530;
}

.feedback {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    display: none;
}

.feedback.correct {
    display: block;
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.feedback.incorrect {
    display: block;
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* Diagram och resultat */
#myChart {
    max-width: 100%;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chart-wrapper {
    margin: 20px 0;
    text-align: center;
}

.chart-info {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

.btn {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 16px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1a2530;
}

.results, .parameters {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

/* Responsive design */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        margin-bottom: 5px;
        border-radius: 5px;
        border: 1px solid #ddd;
    }
    
    .tab-pane {
        border: 1px solid #ddd;
        border-radius: 5px;
    }
    
    #myChart {
        height: auto;
    }
}

/* Header med informationsknapp */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.info-btn {
    padding: 8px 16px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.info-btn:hover {
    background-color: #1a2530;
}

/* Modal för information */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

#readmeContent {
    line-height: 1.6;
}

#readmeContent h2 {
    color: #2c3e50;
    margin-top: 0;
}

#readmeContent h3 {
    color: #2c3e50;
    margin-top: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

#readmeContent ul, 
#readmeContent ol {
    padding-left: 25px;
}

#readmeContent li {
    margin-bottom: 5px;
}

#readmeContent code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
} 