* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial Regular', -apple-system, sans-serif;
    max-width: 100vw;
    
}

.body_background {
    display: flex;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: #121212;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo-container {
    padding: 30px 20px;
}

.logo-box {
    background: #fff;
    color: #000;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 4px;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li a {
    display: block;
    padding: 12px 20px;
    color: #b3b3b3;
    text-decoration: none;
    transition: 0.3s;
}

.nav-menu li.active {
    background-color: #2a2a2a;
}

.nav-menu li.active a {
    color: #fff;
}

.nav-menu li a:hover {
    background-color: #1a1a1a;
    color: #fff;
}

.icon {
    margin-right: 10px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;

}

.settings-link {
    display: block;
    color: #b3b3b3;
    text-decoration: none;
    margin-bottom: 20px;
}

.user-profile {
    text-align: center;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.icons {
    color: #fff;
}

.user-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.logout-btn {
    color: #b3b3b3;
    font-size: 12px;
    text-decoration: none;
}

/* Выравнивание внутри кнопок */
.btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 8px;            
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

/* Выравнивание внутри ссылок бокового меню */
.nav-menu li a {
    display: flex;      
    align-items: center; 
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 16px;
}

/* Настройка иконок-картинок */
.icon_btn {
    width: 30px;         
    height: 30px;
    object-fit: contain;
    
}

.icon_btn_sidebar{
    width: 30px;         
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
}

.icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.user-profile-link {
    text-decoration: none; 
    color: inherit;        
    display: block;        
    transition: opacity 0.3s ease;
}

.user-profile-link:hover {
    opacity: 0.8;          
}


.logout-btn {
    display: block;
    text-align: center;
    margin-top: 5px;
}


/* Main Content */
.main-content {
    flex: 1;
    background: #fff;
    margin: 20px;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.page-title {
    font-size: 42px;
    margin-bottom: 25px;
}

/* Шапка календаря */
.calendar-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.current-month {
    font-size: 24px;
    font-weight: bold;
}

.calendar-nav {
    display: flex;
    gap: 200px;
}

.nav-arrow {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Сетка календаря */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}

.day-cell {
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px 10px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    cursor: pointer;
    transition: transform 0.1s;
}

.day-cell:hover {
    background-color: #f9f9f9;
}

/* Оранжевая ячейка (закрашенная) */
.day-cell.highlighted {
    background-color: #f7b781;
    border-color: #d3965d;
}

.day-number {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.day-info {
    font-size: 11px;
    color: #333;
    line-height: 1.4;
}

.empty {
    border: none;
    pointer-events: none;
}

/* Фоновая подложка */
.modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Контент окна */
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.event-card {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    text-align: left;
    margin: 20px 0;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

.event-label { color: #e67e22; font-weight: bold; }
.orange-link { color: #e67e22; text-decoration: underline; }

/* Кнопка Закрыть как на фото */
.btn-close {
    background: #e67e22;
    color: white;
    border: none;
    padding: 10px 60px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-close:hover { background: #d35400; }