/* Стили для формы авторизации */
body {
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
}

.container {
    margin-top: 50px;
    padding: 0 10px;
}

.row {
    border-bottom: 1px solid #ccc;
    padding-bottom: 30px;
}

.card {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.error {
    color: red;
    text-align: center;
}

h4.center {
    text-align: center;
    margin-bottom: 20px;
}

.input-field {
    margin-bottom: 20px;
    position: relative;
}

.input-field input[type="text"],
.input-field input[type="password"],
.input-field input[type="time"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.input-field input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

.input-field label {
    position: absolute;
    top: 10px;
    left: 8px;
    color: #555;
    transition: all 0.2s;
    pointer-events: none;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label {
    top: -20px;
    left: 0;
    font-size: 12px;
    color: #2196f3;
}

.btn {
    background-color: #2196f3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
}

.btn:hover {
    background-color: #1976d2;
}

.btn.red {
    background-color: #f44336;
}

.btn.red:hover {
    background-color: #d32f2f;
}

/* Стили для редактора расписания */
h1.center {
    text-align: center;
    margin: 10px 0;
}

.tabs {
    margin-bottom: 10px;
    overflow: hidden;
}

.tabs .tab {
    float: left;
    width: 50%;
    text-align: center;
}

.tabs .tab a {
    display: block;
    padding: 10px;
    color: #2196f3;
    text-decoration: none;
    background-color: #f5f5f5;
    border-bottom: 2px solid transparent;
}

.tabs .tab a.active {
    background-color: #fff;
    border-bottom: 2px solid #2196f3;
}

.tabs .tab a:hover {
    background-color: #e0e0e0;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 14px;
}

.calendar div {
    padding: 8px;
    border-radius: 4px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar .day {
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
	font-weight: 600;
}

.calendar .day:hover {
    background-color: #e0e0e0;
}

.calendar .has-slots {
    background-color: #c8e6c9;
}

.calendar .selected {
    background-color: #64b5f6;
    color: white;
}

.calendar .today {
    border: 2px solid #ff5722;
    font-weight: bold;
}

.calendar .past {
    background-color: #eee;
    cursor: not-allowed;
}

.calendar .empty {
    background-color: transparent;
}

.calendar .header {
    font-weight: bold;
    background-color: #f5f5f5;
    color: #333;
}

.calendar .add-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 14px;
    font-weight: bold;
    color: #1976d2;
    cursor: pointer;
}

.calendar .slot-count {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 12px;
    font-weight: bold;
    color: #388e3c;
}

.calendar .past .add-btn {
    display: none;
}

.slot-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.slot-table th,
.slot-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.delete-btn {
    cursor: pointer;
    color: red;
    font-size: 18px;
    line-height: 1;
}

.no-slots {
    margin-top: 10px;
    color: #777;
    font-style: italic;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 90%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
}

.modal.open {
    display: block;
}

.modal-content {
    padding: 20px;
}

.modal-content h6 {
    margin-top: 0;
}

.btn-flat {
    background: none;
    border: none;
    color: #2196f3;
    cursor: pointer;
    padding: 10px;
    font-size: 14px;
}

.btn-flat:hover {
    color: #1976d2;
}

.add-slot-btn {
    margin-top: 10px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-overlay.open {
    display: block;
}

@media (max-width: 600px) {
    .calendar {
        font-size: 12px;
    }

    .calendar div {
        padding: 5px;
        min-height: 30px;
    }

    .slot-table th,
    .slot-table td {
        padding: 5px;
        font-size: 12px;
    }

    .tabs .tab a {
        font-size: 14px;
    }

    .calendar .add-btn {
        font-size: 12px;
    }

    .calendar .slot-count {
        font-size: 10px;
    }
}/* Стили для формы авторизации */
body {
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
}

.container {
    margin-top: 50px;
    padding: 0 10px;
}

.card {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.error {
    color: red;
    text-align: center;
}

h4.center {
    text-align: center;
    margin-bottom: 20px;
}

.input-field {
    margin-bottom: 20px;
    position: relative;
}

.input-field input[type="text"],
.input-field input[type="password"],
.input-field input[type="time"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.input-field input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

.input-field label {
    position: absolute;
    top: 10px;
    left: 8px;
    color: #555;
    transition: all 0.2s;
    pointer-events: none;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label {
    top: -20px;
    left: 0;
    font-size: 12px;
    color: #2196f3;
}

.btn {
    background-color: #2196f3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
}

.btn:hover {
    background-color: #1976d2;
}

.btn.red {
    background-color: #f44336;
}

.btn.red:hover {
    background-color: #d32f2f;
}

/* Стили для редактора расписания */
h5.center {
    text-align: center;
    margin: 10px 0;
}

.tabs {
    margin-bottom: 10px;
    overflow: hidden;
}

.tabs .tab {
    float: left;
    width: 50%;
    text-align: center;
	list-style: none;
}

.tabs .tab a {
    display: block;
    padding: 10px;
    color: #2196f3;
    text-decoration: none;
    background-color: #f5f5f5;
    border-bottom: 2px solid transparent;
}

.tabs .tab a.active {
    background-color: #fff;
    border-bottom: 2px solid #2196f3;
}

.tabs .tab a:hover {
    background-color: #e0e0e0;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 14px;
}

.calendar div {
    padding: 8px;
    border-radius: 4px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar .day {
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar .day:hover {
    background-color: #e0e0e0;
}

.calendar .has-slots {
    background-color: #c8e6c9;
}

.calendar .selected {
    background-color: #64b5f6;
    color: white;
}

.calendar .today {
    border: 2px solid #ff5722;
    font-weight: bold;
}

.calendar .past {
    background-color: #eee;
    cursor: not-allowed;
}

.calendar .empty {
    background-color: transparent;
}

.calendar .header {
    font-weight: bold;
    background-color: #f5f5f5;
    color: #333;
}

.calendar .add-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 14px;
    font-weight: bold;
    color: #1976d2;
    cursor: pointer;
}

.calendar .slot-count {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 12px;
    font-weight: bold;
    color: #388e3c;
}

.calendar .past .add-btn {
    display: none;
}

.slot-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.slot-table th,
.slot-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.delete-btn {
    cursor: pointer;
    color: red;
    font-size: 18px;
    line-height: 1;
}

.no-slots {
    margin-top: 10px;
    color: #777;
    font-style: italic;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 90%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
}

.modal.open {
    display: block;
}

.modal-content {
    padding: 20px;
}

.modal-content h6 {
    margin-top: 0;
}

.btn-flat {
    background: none;
    border: none;
    color: #2196f3;
    cursor: pointer;
    padding: 10px;
    font-size: 14px;
}

.btn-flat:hover {
    color: #1976d2;
}

.add-slot-btn {
    margin-top: 10px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal-overlay.open {
    display: block;
}

@media (max-width: 600px) {
    .calendar {
        font-size: 12px;
    }

    .calendar div {
        padding: 5px;
        min-height: 30px;
    }

    .slot-table th,
    .slot-table td {
        padding: 5px;
        font-size: 12px;
    }

    .tabs .tab a {
        font-size: 14px;
    }

    .calendar .add-btn {
        font-size: 12px;
    }

    .calendar .slot-count {
        font-size: 10px;
    }
}