body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

nav {
    background-color: #333;
    color: white;
    padding: 1em;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 1em;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

.content {
    padding: 2em;
    min-height: calc(100vh - 3em);
    /* Adjust height to fit screen */
    box-sizing: border-box;
}

h1 {
    font-size: 1.3em;
    margin-bottom: 1em;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d0c7c7;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Calendar Container */
#calendar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    padding: 1em;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Calendar */
#calendar {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border: none;
    padding: 1em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}


#calendar-container ul {
    padding-left: 1em;
    /* Add padding to the list */
}

#calendar-container li {
    white-space: nowrap;
    /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Add ellipsis for overflow text */
}

button {
    background-color: #333;
    color: white;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.stylish-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background-color: #d0c7c7;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1em;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}



.stylish-area h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.stylish-area button {
    background-color: #333;
    color: white;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.stylish-area button:hover {
    background-color: #555;
}

.responsive-table {
    width: 100%;
    margin-bottom: 1.5em;
    border-spacing: 0;

}

@media (min-width: 48em) {
    .responsive-table {
        font-size: 0.9em;
    }
}

@media (min-width: 62em) {
    .responsive-table {
        font-size: 1em;
    }
}

.responsive-table thead {
    position: absolute;
    clip: rect(1px 1px 1px 1px);
    /* IE6, IE7 */
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

@media (min-width: 48em) {
    .responsive-table thead {
        position: relative;
        clip: auto;
        height: auto;
        width: auto;
        overflow: auto;
    }
}

.responsive-table thead th {
    background-color: #0177A9;
    border: 1px solid #0e0223;
    font-weight: normal;
    text-align: center;
    color: white;
}

.responsive-table thead th:first-of-type {
    text-align: left;
}

.responsive-table tbody,
.responsive-table tr,
.responsive-table th,
.responsive-table td {
    display: block;
    padding: 0;
    text-align: left;
    white-space: normal;
}

@media (min-width: 48em) {
    .responsive-table tr {
        display: table-row;
    }
}

.responsive-table th,
.responsive-table td {
    padding: 0.5em;
    vertical-align: middle;
}

@media (min-width: 30em) {

    .responsive-table th,
    .responsive-table td {
        padding: 0.75em 0.5em;
    }
}

@media (min-width: 48em) {

    .responsive-table th,
    .responsive-table td {
        display: table-cell;
        padding: 0.5em;
    }
}

@media (min-width: 62em) {

    .responsive-table th,
    .responsive-table td {
        padding: 0.75em 0.5em;
    }
}

@media (min-width: 75em) {

    .responsive-table th,
    .responsive-table td {
        padding: 0.3em;
    }
}

.responsive-table caption {
    margin-bottom: 1em;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
}

@media (min-width: 48em) {
    .responsive-table caption {
        font-size: 1.5em;
    }
}

.responsive-table tfoot {
    font-size: 0.8em;
    font-style: italic;
}

@media (min-width: 62em) {
    .responsive-table tfoot {
        font-size: 0.9em;
    }
}

@media (min-width: 48em) {
    .responsive-table tbody {
        display: table-row-group;
    }
}

.responsive-table tbody tr {
    margin-bottom: 1em;
}

@media (min-width: 48em) {
    .responsive-table tbody tr {
        display: table-row;
        border-width: 1px;
    }
}

.responsive-table tbody tr:last-of-type {
    margin-bottom: 0;
}

@media (min-width: 48em) {
    .responsive-table tbody tr:nth-of-type(even) {
        background-color: rgba(0, 0, 0, 0.12);
    }
}

.responsive-table tbody th[scope=row] {
    background-color: #26890d;
    color: white;

}

@media (min-width: 30em) {
    .responsive-table tbody th[scope=row] {
        border-left: 1px solid #86bc25;
        border-bottom: 1px solid #86bc25;
    }
}

@media (min-width: 48em) {
    .responsive-table tbody th[scope=row] {
        background-color: transparent;
        color: #000001;
        text-align: left;
    }
}

.responsive-table tbody td {
    text-align: right;
}

@media (min-width: 48em) {
    .responsive-table tbody td {
        border-left: 1px solid #86bc25;
        border-bottom: 1px solid #86bc25;
        text-align: center;
    }
}

@media (min-width: 48em) {
    .responsive-table tbody td:last-of-type {
        border-right: 1px solid #86bc25;
    }
}

.responsive-table tbody td[data-type=currency] {
    text-align: right;
}

.responsive-table tbody td[data-title]:before {
    content: attr(data-title);
    float: left;
    font-size: 0.8em;
    color: rgba(0, 0, 0, 0.54);
}

@media (min-width: 30em) {
    .responsive-table tbody td[data-title]:before {
        font-size: 0.9em;
    }
}

@media (min-width: 48em) {
    .responsive-table tbody td[data-title]:before {
        content: none;
    }
}
/* Add this to your existing CSS */
.responsive-table th[colspan="3"] {
    width: 50%;
    /* Ensure equal width for both columns */
}

.responsive-table td[colspan="3"] {
    width: 50%;
    /* Ensure equal width for both columns */
}

/* Add this to your existing CSS */
.appointment {
    cursor: move;
    /* Change cursor to indicate draggable */
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.appointment:hover {
    background-color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Add this to your existing CSS */
.appointment {
    position: relative;
    cursor: move;
    padding: 0.5em;
    margin: 0.5em 0;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.appointment:hover {
    background-color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* General body styling */
body {
    font-family: Arial, sans-serif;
}

/* Main scheduler layout */
.scheduler {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 1px;
    background-color: #eee;
    width: 80%;
    margin: auto;
}

/* Header styling */
.header,
.time-slots {
    display: contents;
}

/* Resource header styling */
.resource-header {
    background-color: #f2f2f2;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

/* Time column (left-side time labels) */
.time-column {
    grid-row: 2;
    grid-column: 1;
    display: grid;
    grid-template-rows: repeat(9, 60px);
    /* 1-hour intervals */
}

.time-label {
    padding: 5px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

/* Resource column with 24 half-hour intervals from 08:00 to 20:00 */
.resource-column {
    grid-row: 2;
    display: grid;
    grid-template-rows: repeat(24, 30px);
    /* 24 half-hour intervals */
    border-left: 1px solid #ccc;
    position: relative;
}

.resource-column::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% 30px;
    /* Half-hour intervals */
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
    /* Ensure it’s behind events */
}

/* Event block styling */
.event {
    position: absolute;
    width: 100%;
    background-color: #4caf50;
    color: white;
    border-radius: 5px;
    cursor: move;
    z-index: 2;
    /* Above grid lines */
}

/* Delete button inside event */
.event span {
    float: right;
    cursor: pointer;
}

/* Resize handles styling */
.resize-handle {
    height: 5px;
    width: 100%;
    background-color: #ddd;
    cursor: ns-resize;
    position: absolute;
    z-index: 10;
}

/* Top and bottom resize handles */
.resize-top {
    top: 0;
}

.resize-bottom {
    bottom: 0;
}

/* Modal styling for adding event */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 3;
    /* Above everything */
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    width: 300px;
    text-align: center;
    border-radius: 8px;
}

/* Close button in modal */
.close {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
}

/* Input styling in modal */
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}