:root {
    --primary-color: rgb(74, 162, 248); /* Define your color constant */
    --darkend-primary-color: rgb(69, 149, 227);
    --lighter-grey: #979797;
    --input-color: #f3f3f3;
}

* {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5em;
}

body {
    margin: 30px;
}

button {
    height: 50px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

button:hover {
    background-color: var(--darkend-primary-color);
}

.header-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.header-row > h1 {
    margin: 0;
}

.create-button, .toggle-button {
    margin-left: 10px;
    height: 50px;
}

.toggle-button[data-active="false"] {
    background-color: var(--lighter-grey);
}

.toggle-button[data-active="false"]:hover {
    background-color: grey;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
}

.content {
    margin-left: 260px;
    padding-left: 40px;
    width:  calc(100% - 250px - 80px);
    overflow-x: hidden;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    border: #c6c6c6 solid 1px;
    border-radius: 100px;
}

.equal-table {
    table-layout: fixed;
}

table, th, td {
    border: 1px solid #dcdcdc;
}

.custom-table td {
    padding: 10px 10px;
    text-align: left;
}

.custom-table > tr > th{
    background-color: #D9D9D9;
}

.custom-table th {
    text-align: left;
    padding-left: 10px;
    background-color: #f5f5f5;
}

.custom-table tbody tr:nth-child(odd) {
    background-color: var(--input-color); /* Light grey for odd rows */
}

.custom-table tbody tr:nth-child(even) {
    background-color: #fafafa; /* White for even rows */
}

.row-highlight tbody tr:hover,
.trip-container:hover {
    background-color: #e1e1e1;
    cursor: pointer;
}

.match {
    background-color: var(--primary-color);
    color: white;
}

/* Inputs */
.input-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

input, .input-container > textarea, .input-container > select {
    min-height: 50px;
    padding: 0 20px;
    background-color: var(--input-color);
    border: 1px solid transparent;
    border-radius: 10px;
    line-height: 1.5em;
    font-size: 1.005em;
}

.input-container > textarea {
    padding-top: 15px;
}

input:focus, .input-container > textarea:focus, .input-container > select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.input-container > p {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--lighter-grey);
}

.save-button {
    margin-top: 20px;
    margin-bottom: 10px;
    min-width: 200px;
    text-align: left;
}

.return-button {
    background-color: var(--lighter-grey);
}

.return-button:hover {
    background-color: grey;
}

.delete-button {
    background-color: red;
}

.delete-button:hover {
    background-color: #d80000;
}

.success-bar {
    border-radius: 10px;
    background-color: white;
    border: 4px solid var(--primary-color);
    padding: 20px;
    max-width: 300px;
    position: fixed;
    top: 20px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.success-bar > h3, .success-bar > p {
    margin: 0;
}

.success-bar[data-shown=true] {
    opacity: 1;
    visibility: visible;
}

.transport {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 90px;
}

.transport > div {
    flex: 1;
    min-width: calc(30% - 60px);
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .transport {
        flex-direction: column;
        gap: 70px;
    }

    .transport > div {
        min-width: 100%;
    }
}

.vertical-divider {
    width: 1px;
    background-color: grey;
    margin: 0 10px;
}

.trip-container p {
    margin: 0;
}

.trip-container > .trip-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.trip-trailer {
    color: var(--lighter-grey);
}

.trip-container .trip-earnings {
    background: var(--primary-color);
    color: white;
    margin: 10px;
    padding: 5px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.vehicle-container p {
    margin: 0;
}

.vehicle-container p:first-child {
    font-weight: bold;
}

.trip-container > div > .trip-driver {
    margin-right: 70px;
}

.trip-route {
    display: flex;
    flex-direction: row;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
    width: 100%;
}

.trip-route > div:not(.vertical-divider) {
    width: calc(50% - 12px);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.trip-container > .trip-notes {
    font-size: 0.75em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trip-driver {
    font-size: 0.9em;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.week-controller {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.current-week {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-week p, .current-week h3 {
    margin: 0;
}

.income-statistics {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    padding: 20px;
}

.income-statistics p {
    margin-top: 0;
    margin-bottom: 0;
}

.income-row {
    display: flex;
    align-items: center;
}

.income-category {
    font-weight: bold;
}

.income-value {
    margin-left: 10px;
}

.required {
    color: red;
}

#switch-button {
    font-size: 2em;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(50%, -50%);
}

@media (max-width: 900px) {
    #switch-button {
        left: 0;
        transform: translate(0%, -100%);
    }
}
