:root {
    --os-cream: #FFF9EA;
    --os-teal: #2A9D8F;
    --os-light-teal: #64B6AC;
    --os-mint: #A7E8BD;
    --os-orange: #E76F51;
    --white: #FFFFFF;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --radius: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--os-cream);
    color: var(--os-teal);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 1rem;
}


h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--os-teal);
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--os-teal);
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.intro-text {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--os-teal);
}


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}


.button {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
}

.back-button {
    background-color: transparent;
    color: var(--os-teal);
    border: 1px solid var(--os-teal);
}

.back-button:hover {
    background-color: rgba(42, 157, 143, 0.1);
}

.back-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.os-concepts-button {
    background-color: transparent;
    color: var(--os-teal);
    border: 1px solid var(--os-teal);
}

.os-concepts-button:hover {
    background-color: rgba(42, 157, 143, 0.1);
}

.run-button {
    background-color: var(--os-teal);
    color: var(--white);
    border: none;
}

.run-button:hover {
    background-color: rgba(42, 157, 143, 0.9);
}

.reset-button {
    background-color: transparent;
    color: var(--os-teal);
    border: 1px solid var(--os-teal);
}

.reset-button:hover {
    background-color: rgba(42, 157, 143, 0.1);
}


.card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-header p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.card-content {
    padding: 1.5rem;
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    font-weight: 600;
    color: var(--gray-600);
}

.table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}


.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .options-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.algorithm-select, .process-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.select-input {
    padding: 0.5rem;
    border: 1px solid var(--os-teal);
    border-radius: var(--radius);
    color: var(--gray-700);
}

.process-counter {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.process-count-display {
    min-width: 2rem;
    text-align: center;
}

.counter-button {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--os-teal);
    border: 1px solid var(--os-teal);
    border-radius: var(--radius);
    cursor: pointer;
}

.counter-button:hover {
    background-color: rgba(42, 157, 143, 0.1);
}

input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
}


.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}


.gantt-container {
    overflow-x: auto;
    width: 100%;
}


.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.metric-box {
    background-color: rgba(167, 232, 189, 0.2); /* os-mint with opacity */
    padding: 1rem;
    border-radius: var(--radius);
}

.metric-value {
    font-size: 1.5rem;
}


.algorithm-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .algorithm-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

.algo-description {
    color: #07a4e1;
}

.advantage-heading {
    color: #5cb2a8;
}

.disadvantage-heading {
    color: #ee7534 ;
}

.info-list {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-top: 0.25rem;
}

.info-list li {
    margin-bottom: 0.25rem;
}
