* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1a202c;
}

.hidden {
    display: none !important;
}

/* Login Form Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-form h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #1a202c;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-icons {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.25rem;
    color: #9ca3af;
}

.toggle-password {
    background: none;
    border: none;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    font-size: 1.25rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password:hover {
    color: #2563eb;
}

.btn-login {
    width: 100%;
    background-color: #fbbf24;
    color: #1a202c;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 1rem;
}

.btn-login:hover {
    background-color: #f59e0b;
}

.btn-vk {
    width: 100%;
    background-color: #3b82f6;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-vk:hover {
    background-color: #2563eb;
}

/* Dashboard Styles */
.dashboard {
    display: flex;
    height: 100vh;
    background-color: #f8fafc;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #1f2937;
    color: white;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-section {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
}

.calendar-nav:hover {
    color: #1f2937;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    padding: 0.25rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-days span {
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-days span:hover {
    background-color: #f3f4f6;
}

.calendar-days span.active {
    background-color: #fbbf24;
    color: #1f2937;
    font-weight: 500;
}

.sidebar-menu {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 0.25rem;
}

.menu-item:hover {
    background-color: #f3f4f6;
}

.menu-item.active {
    background-color: #e5e7eb;
}

.menu-icon {
    font-size: 1.125rem;
}

.menu-arrow {
    margin-left: auto;
    color: #9ca3af;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem;
}

.logout-btn {
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background: #dc2626;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: 280px;
    overflow-y: auto;
}

.header {
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.header-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.date-nav {
    display: flex;
    gap: 0.5rem;
}

.date-nav-btn {
    background: none;
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.date-nav-btn:hover {
    background: #f3f4f6;
}

.current-date {
    font-weight: 500;
    color: #1f2937;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
}

.filter-btn,
.settings-btn {
    background: none;
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-btn:hover,
.settings-btn:hover {
    background: #f3f4f6;
}

.notifications {
    position: relative;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Schedule Styles */
.schedule-container {
    padding: 1.5rem;
}

.tutors-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tutor-column {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.tutor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tutor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.tutor-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tutor-details p {
    color: #6b7280;
    font-size: 0.875rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 1rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.time-column {
    background: #f9fafb;
    padding: 1rem 0.5rem;
    border-right: 1px solid #e5e7eb;
}

.time-slot {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.125rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.time-slot:last-child {
    border-bottom: none;
}

.time-slot sup {
    font-size: 0.75rem;
    margin-left: 2px;
}

.appointments-column {
    padding: 1rem 0.5rem;
}

.appointment-slot {
    height: 80px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.appointment-slot:last-child {
    border-bottom: none;
}

.appointment-slot.empty:hover {
    background-color: #f9fafb;
}

.appointment {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.appointment:hover {
    transform: translateY(-1px);
}

.appointment.green {
    background-color: #10b981;
    color: white;
}

.appointment.light-green {
    background-color: #a7f3d0;
    color: #065f46;
}

.appointment-time {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.appointment-subject {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.appointment-student {
    margin-bottom: 0.25rem;
}

.appointment-phone {
    font-size: 0.75rem;
    opacity: 0.8;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.time-inputs span {
    font-weight: 500;
    color: #6b7280;
}

.add-break-btn {
    background: none;
    border: 1px dashed #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.add-break-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.services-section {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
}

.service-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.service-tab.active {
    border-bottom-color: #3b82f6;
    color: #3b82f6;
}

.service-search {
    margin-bottom: 1rem;
}

.service-search input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.service-card {
    background: white;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.service-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.service-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

.client-section {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
}

.client-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.phone-input {
    display: flex;
    gap: 0.5rem;
}

.country-code {
    width: 80px;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

.existing-clients {
    margin-top: 1rem;
}

.existing-clients h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.client-list {
    max-height: 200px;
    overflow-y: auto;
}

.client-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s;
}

.client-item:hover {
    background-color: #f3f4f6;
}

.btn-save {
    background: #fbbf24;
    color: #1f2937;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-save:hover {
    background: #f59e0b;
}

.btn-delete {
    background: #ef4444;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-delete:hover {
    background: #dc2626;
}

.tutor-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}


.appointment-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
}

.appointment-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.appointment-date span {
    font-size: 1.5rem;
}

.edit-btn {
    background: none;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.edit-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.appointment-details h4,
.status-section h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.selected-service {
    background: white;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.selected-service h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.selected-service p {
    color: #6b7280;
    font-size: 0.875rem;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.service-option:hover {
    border-color: #3b82f6;
}

.service-option.active {
    border-color: #10b981;
    background: #f0fdf4;
}

.service-option .frequent {
    margin-left: auto;
    background: #fbbf24;
    color: #1f2937;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.payment-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.payment-method:hover {
    border-color: #3b82f6;
}

.payment-method.active {
    border-color: #fbbf24;
    background: #fffbeb;
}

.status-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.status-btn:hover {
    background: #f3f4f6;
}

.status-btn.waiting.active {
    background: #fbbf24;
    color: #1f2937;
    border-color: #fbbf24;
}

.status-btn.arrived.active {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.status-btn.no-show.active {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.status-btn.confirmed.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.client-info h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.client-details {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.client-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.client-details p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.client-stats {
    margin-bottom: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.visit-status {
    color: #3b82f6;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.additional-info h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.add-note-btn {
    background: none;
    border: 1px dashed #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.add-note-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.statistics h4,
.appointment-data h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.stat-row:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: fixed;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .header-right {
        display: none;
    }

    .tutors-header {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 60px 1fr;
    }

    .login-form {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }

    .header-left {
        gap: 0.5rem;
    }

    .current-date {
        font-size: 0.875rem;
    }

    .schedule-container {
        padding: 1rem;
    }

    .time-slot {
        height: 60px;
        font-size: 1rem;
    }

    .appointment-slot {
        height: 60px;
    }

    .appointment {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* Schedule Container */
.schedule-container {
    padding: 0px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tutors Header */
.tutors-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tutor-column {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tutor-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tutor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.tutor-details h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.tutor-details p {
    color: #718096;
    font-size: 14px;
}

/* Schedule Grid */
.schedule-grid {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.time-column {
    width: 80px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.time-slot {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.time-slot:last-child {
    border-bottom: none;
}

.time-slot sup {
    font-size: 10px;
}

/* Appointments Column */
.appointments-column {
    flex: 1;
    position: relative;
    border-right: 1px solid #e2e8f0;
    min-height: 640px;
    /* 8 часов * 80px */
}

.appointments-column:last-child {
    border-right: none;
}

.time-grid {
    position: relative;
    height: 100%;
}

.grid-slot {
    height: 20px;
    /* 15 минут = 20px */
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    cursor: pointer;
    transition: background-color 0.2s;
}

.grid-slot:hover {
    background-color: rgba(66, 153, 225, 0.1);
}

.grid-slot:nth-child(4n) {
    border-bottom: 1px solid #e2e8f0;
}

/* Appointments */
.appointment {
    position: absolute;
    left: 4px;
    right: 4px;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.appointment.green {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.appointment.light-green {
    background: linear-gradient(135deg, #9ae6b4, #68d391);
    color: white;
}

.appointment.blue {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.appointment.red {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.appointment-time {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
    opacity: 0.9;
}

.appointment-subject {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.2;
}

.appointment-student {
    font-size: 12px;
    margin-bottom: 1px;
    opacity: 0.9;
    line-height: 1.2;
}

.appointment-phone {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
}

/* Короткие записи (меньше 60 минут) */
.appointment.short {
    padding: 4px 8px;
}

.appointment.short .appointment-subject {
    font-size: 12px;
}

.appointment.short .appointment-student,
.appointment.short .appointment-phone {
    display: none;
}

/* Очень короткие записи (меньше 30 минут) */
.appointment.very-short {
    padding: 2px 6px;
}

.appointment.very-short .appointment-time {
    font-size: 10px;
}

.appointment.very-short .appointment-subject {
    font-size: 11px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #a0aec0;
    transition: all 0.2s;
}

.close-modal:hover {
    color: #2d3748;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid #e2e8f0;
}

.btn-save {
    background: #48bb78;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-save:hover {
    background: #38a169;
}

.btn-delete {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-delete:hover {
    background: #c53030;
}

/* Responsive Design */
@media (max-width: 768px) {
    .schedule-container {
        padding: 10px;
    }

    .tutors-header {
        flex-direction: column;
        gap: 15px;
    }

    .schedule-grid {
        overflow-x: auto;
    }

    .appointments-column {
        min-width: 200px;
    }

    .modal-content {
        width: 95%;
        margin: 2% auto;
    }

    .modal-body {
        padding: 20px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    animation: fadeIn 0.3s ease-out;
}

.appointment {
    animation: fadeIn 0.2s ease-out;
}

/* Дополнительные эффекты */
.appointment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px 0 0 8px;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}