* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

h2, h3, h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 3px solid transparent;
}

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

.tab-btn.active {
    background-color: #f5f5f5;
    color: #3498db;
    border-bottom: 3px solid #3498db;
}

.tab-content {
    display: none;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

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

.info-container {
    display: flex;
    gap: 30px;
}

.brain-container {
    flex: 1;
    text-align: center;
}

.explanation {
    flex: 1;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.explanation ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.explanation li {
    margin-bottom: 8px;
}

.cognitive-load-meter, .cognitive-analysis {
    margin-top: 20px;
    text-align: center;
}

.meter-container {
    height: 25px;
    background-color: #e0e0e0;
    border-radius: 15px;
    margin: 10px 0;
    overflow: hidden;
}

.meter {
    height: 100%;
    background: linear-gradient(to right, #2ecc71, #f39c12, #e74c3c);
    transition: width 0.5s ease-in-out;
    border-radius: 15px;
}

#load-percentage, #daily-load-percentage, #simultaneous-load-percentage, #distraction-load-percentage {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.task-container {
    display: flex;
    gap: 20px;
}

.tasks, .schedule, .active-area, .main-task-area, .distractions-area, .cognitive-analysis {
    flex: 1;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.task-list {
    min-height: 300px;
}

.task {
    padding: 12px;
    margin: 8px 0;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: move;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 5px solid #3498db;
}

.task:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.task.dragging {
    opacity: 0.7;
    transform: scale(0.95);
}

.time-slot {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.time {
    width: 40px;
    text-align: right;
    padding-right: 10px;
    font-weight: bold;
}

.slot {
    flex: 1;
    height: 60px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.slot:hover {
    background-color: #f0f8ff;
}

.active-tasks-container {
    min-height: 200px;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.main-task {
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.main-task .task {
    cursor: default;
    border-left-color: #e74c3c;
}

.distraction-task {
    border-left-color: #f39c12;
}

.analysis {
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.placeholder {
    color: #aaa;
    text-align: center;
    margin: 0;
    font-style: italic;
}

.results-container {
    display: flex;
    gap: 30px;
}

.results-chart, .results-summary {
    flex: 1;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cognitive-profile {
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.cognitive-profile-chart {
    margin: 15px 0;
}

.profile-percentage {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.profile-label {
    width: 130px;
    font-weight: bold;
}

.percentage-bar {
    flex: 1;
    height: 15px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin: 0 10px;
    overflow: hidden;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(to right, #3498db, #2980b9);
    border-radius: 10px;
}

.percentage-value {
    width: 40px;
    text-align: right;
    font-weight: bold;
}

.cognitive-tips {
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cognitive-tips ul {
    margin-left: 20px;
}

.cognitive-tips li {
    margin-bottom: 8px;
}

.profile-card ul {
    margin-top: 15px;
    margin-left: 20px;
}

.profile-card li {
    margin-bottom: 8px;
}

.mindscore-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.mindscore-about, .mindscore-benefits {
    flex: 1;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mindscore-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.benefit-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-card {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.context-table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.table-header {
    display: flex;
    background-color: #f0f0f0;
    font-weight: bold;
}

.table-row {
    display: flex;
    border-top: 1px solid #e0e0e0;
}

.table-cell {
    flex: 1;
    padding: 12px 15px;
    border-right: 1px solid #e0e0e0;
}

.table-cell:last-child {
    border-right: none;
}

.profile-example {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.scientific-coherence {
    margin-top: 25px;
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.coherence-table {
    margin-top: 15px;
}

.coherence-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.coherence-row:last-child {
    border-bottom: none;
}

.coherence-element {
    flex: 1;
    font-weight: bold;
    padding-right: 15px;
}

.coherence-validation {
    flex: 2;
    line-height: 1.6;
}

.memory-unit {
    rx: 5;
    ry: 5;
    fill: #3498db;
    stroke: #2980b9;
    stroke-width: 1;
    transition: fill 0.3s, opacity 0.3s;
}

.memory-unit.active {
    fill: #e74c3c;
}

.distraction-active {
    background-color: #fff3e0;
    border: 2px solid #f39c12;
}

@media (max-width: 900px) {
    .info-container, .task-container {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .results-container {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .mindscore-container, .profile-container {
        flex-direction: column;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header, .table-row {
        flex-direction: column;
    }
    
    .table-cell {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .table-row:last-child .table-cell:last-child {
        border-bottom: none;
    }
    
    .coherence-row {
        flex-direction: column;
    }
    
    .coherence-element {
        margin-bottom: 8px;
    }
}