/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.gantt-chart {
    display: flex;
    flex-direction: column;
    width: 100%;
  /*   max-width: 800px; Optional: set a maximum width */
    margin: 20px auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.header {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ccc;
}

.day, .task {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.day:not(:last-child), .task:not(:last-child) {
    border-right: 1px solid #ccc;
}

.rows-container {
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
}

.task {
    height: 40px; /* Adjust as needed */
    background-color: #f9f9f9;
    border-bottom: 1px solid #ccc;
    position: relative;
}

.day-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weekday {
    font-weight: bold;
    font-size: 0.9rem;
}

.daynum {
    font-size: 0.85rem;
    margin-top: 2px;
}

.event-bar {
    position: absolute;
    height: 70%;
    top: 15%;
    background-color: #4caf50;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    padding-left: 4px;
    display: flex;
    align-items: center;
}
.row {
    position: relative; /* required for absolute bars */
}





/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .day, .task {
        flex-basis: calc(100% / 2); /* Two columns per row on small screens */
    }
}

@media (max-width: 480px) {
    .day, .task {
        flex-basis: 100%; /* Full width on very small screens */
    }
}
