body {
    font-family: sans-serif;
    padding: 0;
    margin: 0;
}
#app-section {
    display: none; 
}
.app-content { 
    padding: 20px;
}

#login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}
.login-container {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 350px;
}
.login-container h2 {
    text-align: center;
    margin-top: 0;
}
#login-form div {
    margin-bottom: 15px;
}
#login-form label {
    display: block;
    margin-bottom: 5px;
}
#login-form input[type="text"],
#login-form input[type="password"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#login-btn {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}
#login-btn:hover {
    background-color: #0056b3;
}
#login-message {
    color: #f44336;
    text-align: center;
    margin-top: 10px;
}

.session-bar {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.session-bar button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.controls, .search-container {
    margin-top: 20px;
}

.search-container {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f4f4f4;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.search-container select,
.search-container input {
    padding: 8px;
}
.search-container input[type="text"] {
    flex: 1;
}
.container {
    display: flex;
    gap: 30px;
}
.calendar-area {
    width: 60%;
}
.schedule-list-area {
    width: 35%;
    border-left: 1px solid #ccc;
    padding-left: 20px;
}
.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-weight: bold;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 2px solid #333;
}
#calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid #ddd;
}
.calendar-cell {
    min-height: 100px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 5px;
    box-sizing: border-box;
    cursor: pointer;
    overflow-y: auto;
}
.calendar-cell:hover {
    background-color: #f9f9f9;
}
.calendar-cell.empty {
    background-color: #f5f5f5;
    cursor: default;
}
.schedule-item-calendar {
    font-size: 0.8em;
    background-color: #e0f7fa;
    border-radius: 3px;
    padding: 2px 4px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    cursor: pointer; 
}
#schedule-list li {
    padding: 4px 2px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
#schedule-list li:hover {
    background-color: #f4f4f4;
}
.modal-hidden {
    display: none;
}
#schedule-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
}
.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px 30px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 400px; 
    border-radius: 8px;
}
.modal-content div {
    margin-bottom: 15px;
}
.modal-content label {
    display: block;
    margin-bottom: 5px;
}
.modal-content input[type="text"],
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.modal-content textarea {
    min-height: 80px;
    resize: vertical;
}
.modal-close-btn {
    float: right;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
}
.button-group {
    display: flex;
    justify-content: flex-end; 
    margin-top: 20px;
}
.button-group button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    background-color: #007bff;
    color: white;
}
.button-group button:hover {
    background-color: #0056b3;
}
.calendar-cell.highlight {
    background-color: #fffb8f; 
    border: 2px solid #fdd835;
}

body { font-family: sans-serif; padding: 0; margin: 0; }

.btn-danger {
    background-color: #f44336 !important;
    color: white;
    margin-left: 10px; 
}
.btn-danger:hover {
    background-color: #d32f2f !important;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}