* {
    margin: 0px;
    --lighterColor: rgb(215, 247, 255);
    --darkColor: rgb(3, 50, 65);
    --lightColor: rgb(119, 220, 245);
    --darkerColor: rgb(2, 30, 41);
}

header {
    display: flex;
    position: relative;
    height: 150px;
    width: 100%;
    background: var(--lightColor);
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    word-spacing: 0.2em;
    font-weight: bold;
    color: var(--darkColor);
    border-bottom: 8px solid var(--darkerColor);
}

header h1 {
    margin: 0;
}

.homeButton {
    display: inline-block;
    width: 15%;
    z-index: 5;
    position: absolute;
    left: 32px;
}

.homeButton button {
    box-sizing: border-box;
    padding: 1rem 1.5rem;
    margin: 0;
    border: 4px solid var(--darkColor);
    background: var(--lighterColor);
    border-radius: 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--darkerColor);
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 150ms ease;
}

.homeButton button:hover,
.homeButton button:focus {
    transform: scale(1.1);
}

.homeButton button:active {
    transform: scale(1);
}

a {
    text-decoration: none;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.layout {
    display: flex;
    gap: 0;
    align-items: flex-start;
    width: 100vw;
    height: calc(70vh);
    padding: 20px;
    box-sizing: border-box;
}

.canvas-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 75%;
    height: 100%;
    box-sizing: border-box;
}

.algorithm-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.algorithm-selector {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.algorithm-selector select {
    width: 180px;
    padding: 6px;
    font-size: 14px;
}

.horizon-selector {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.horizon-selector input {
    width: 140px;
    padding: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.schedule-status {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid #c62828;
    color: #c62828;
    background: #ffe9e9;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
}

.algorithm-description {
    border: 1px solid #c7d2e0;
    background: #f4f8ff;
    color: #1f2d3d;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box;
    min-height: 56px;
}

.utilization-display {
    border: 1px solid #c6ddc6;
    background: #effaf0;
    color: #1b4d1b;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box;
    min-height: 40px;
}

.utilization-display.utilization-overloaded {
    border-color: #c62828;
    background: #ffe9e9;
    color: #9f1d1d;
}

.utilization-display.utilization-warning {
    border-color: #b7791f;
    background: #fff6db;
    color: #7a4b00;
}

.controls {
    width: calc(25% - 20px);
    height: 100%;
    margin-left: 20px;
    overflow-y: auto;
    border: 1px solid #cccccc;
    padding: 12px;
    box-sizing: border-box;
    background: #f8f8f8;
}

.task-panel {
    border: 1px solid #bbbbbb;
    padding: 10px;
    margin-bottom: 12px;
    background: #ffffff;
}

.task-panel h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.task-panel .field {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.task-panel .field input,
.task-panel .field select {
    margin-top: 0;
    width: 120px;
    flex: 0 0 120px;
    min-width: 120px;
    box-sizing: border-box;
    text-align: right;
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    font-size: 13px;
}

.field input,
.field select {
    margin-top: 3px;
    padding: 4px;
    font-size: 13px;
}

.hidden {
    display: none;
}

#add-task-panel {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
}

.delete-button {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    float: right;
    margin-top: -25px;
}

.delete-button:hover {
    background-color: #ff5252;
}
