body {
    background: linear-gradient(135deg, #2d2a21 0%, #1e1c15 100%);
    min-height: 100vh;
    padding: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Стили для фильтра пользователей */
.user-filter-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
}

#userFilterButton {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 167, 38, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#userFilterButton:hover {
    background: rgba(255, 167, 38, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
}

#userFilterButton:active {
    transform: translateY(0);
}

#userFilterButton .filter-text {
    min-width: 120px;
    display: inline-block;
    text-align: left;
}

/* Исправленные стили для элементов списка */
.dropdown-item {
    color: white !important;
    padding: 12px 15px !important;
    min-height: 40px !important;
    font-size: 1rem !important;
    border-radius: 6px !important;
    margin: 5px 0 !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
}

.dropdown-item:hover {
    background-color: rgba(255, 152, 0, 0.2) !important;
    color: white !important;
    transform: translateX(3px) !important;
}

.dropdown-item.active {
    background-color: #ff9800 !important;
    color: white !important;
    font-weight: 600;
    border-left: 3px solid #ffc107;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

.dropdown-item.active:hover {
    background-color: #f57c00 !important;
}

.dropdown-item i {
    margin-right: 12px !important;
    font-size: 1.2rem !important;
    min-width: 24px !important;
}

.dropdown-item .user-name {
    color: white !important;
    font-weight: 500 !important;
    flex: 1 !important;
}

/* Улучшение для выпадающего списка */
#userFilterList {
    min-width: 320px !important;
    max-height: 500px !important;
    overflow-y: auto !important;
    background: rgba(45, 42, 33, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 167, 38, 0.3) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    padding: 10px 0 !important;
    border-radius: 12px !important;
    margin-top: 10px !important;
}

.dropdown-header {
    padding: 10px 15px !important;
    font-weight: 600 !important;
    color: #ff9800 !important;
    background: rgba(255, 152, 0, 0.1) !important;
    border-bottom: 1px solid rgba(255, 167, 38, 0.2) !important;
    margin: 0 10px 10px !important;
    border-radius: 6px !important;
}

/* Календарь */
#calendar {
    background: rgba(45, 42, 33, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 167, 38, 0.1);
}

.fc {
    max-width: 1200px;
    margin: 0 auto;
}

.fc-header-toolbar {
    margin-bottom: 20px;
}

.fc-button-primary {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.2s;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.fc-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.5);
}

.fc-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.fc-button-primary:not(:disabled):active {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.fc-button-primary:disabled {
    opacity: 0.5;
}

.fc-daygrid-day-number {
    font-weight: 600;
    color: #e0e0e0;
}

.fc-event {
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fc-event:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.fc-event-time {
    font-weight: 600;
}

.fc-event-title {
    font-weight: 500;
}

.fc-day-today {
    background: rgba(255, 152, 0, 0.15) !important;
}

.fc-day-today .fc-daygrid-day-number {
    color: #ff9800 !important;
    font-weight: 700;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 50%;
    padding: 2px 6px;
}

.fc-daygrid-day-top {
    padding: 5px;
}

.fc-col-header-cell {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    font-weight: 600;
    border: none;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.fc-col-header-cell:hover {
    background: rgba(255, 152, 0, 0.25);
}

.fc-daygrid-block-event .fc-event-time {
    font-weight: 600;
    color: #e0e0e0;
}

.fc-daygrid-block-event .fc-event-title {
    font-weight: 600;
    color: #ffffff;
}

.fc-daygrid-day-frame {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: background 0.2s;
}

.fc-daygrid-day-frame:hover {
    background: rgba(255, 152, 0, 0.05);
}

.fc-daygrid-day-top {
    color: #e0e0e0;
}

.fc-button-primary:focus {
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

/* Модальное окно */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: rgba(45, 42, 33, 0.98);
    backdrop-filter: blur(10px);
    color: #e0e0e0;
}

.modal-header {
    background: rgba(255, 152, 0, 0.15);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid rgba(255, 167, 38, 0.2);
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    color: #e0e0e0;
}

.task-detail {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #ff9800;
    border: 1px solid rgba(255, 167, 38, 0.1);
}

.task-detail strong {
    color: #ff9800;
    display: block;
    margin-bottom: 5px;
}

.task-detail span {
    color: #b0b0b0;
    font-size: 0.95em;
}

.task-priority-high {
    border-left-color: #dc3545;
}

.task-priority-medium {
    border-left-color: #ffc107;
}

.task-priority-low {
    border-left-color: #28a745;
}

.task-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 5px;
}

.status-todo {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
}

.status-in-progress {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-done {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.status-review {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

#openTaskBtn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

#openTaskBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.5);
}

#openTaskBtn:active {
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    #calendar {
        padding: 10px;
    }
    
    .user-filter-dropdown {
        position: static;
        margin-top: 15px;
    }
}

/* Стили для иконок */
.bi {
    font-size: 1.2rem;
}

/* Стили для кнопок */
.btn {
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Стили для текста */
.text-muted {
    color: #808080 !important;
}

/* Стили для ссылок */
a {
    color: #ff9800;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #f57c00;
}

/* Стили для таблиц */
table {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: rgba(255, 255, 255, 0.05);
}

th {
    color: #ff9800;
    font-weight: 600;
}

td {
    color: #e0e0e0;
}

/* Стили для форм */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 167, 38, 0.2);
    color: #e0e0e0;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
    color: #e0e0e0;
}

.form-control::placeholder {
    color: #808080;
}

/* Стили для карточек */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 167, 38, 0.1);
    border-radius: 8px;
}

.card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 167, 38, 0.1);
    color: #e0e0e0;
}

.card-body {
    color: #e0e0e0;
}

/* Стили для элементов интерфейса */
.fc-button {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 167, 38, 0.2);
}

.fc-button:hover {
    background: rgba(255, 152, 0, 0.2);
}

.fc-button:active {
    background: rgba(255, 152, 0, 0.3);
}

/* Стили для активных элементов */
.fc-button-active {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

/* Стили для событий с разными приоритетами */
.fc-event.bg-high {
    background-color: #dc3545 !important;
    border-color: #c82333 !important;
}

.fc-event.bg-medium {
    background-color: #ffc107 !important;
    border-color: #e0a800 !important;
}

.fc-event.bg-low {
    background-color: #28a745 !important;
    border-color: #218838 !important;
}

/* Стили для тени */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.2) !important;
}

/* Стили для границ */
.border-primary {
    border-color: #ff9800 !important;
}

/* Стили для фона */
.bg-primary {
    background-color: #ff9800 !important;
}

.bg-light-primary {
    background-color: rgba(255, 152, 0, 0.1) !important;
}

/* Стили для текста */
.text-primary {
    color: #ff9800 !important;
}

.text-light-primary {
    color: rgba(255, 152, 0, 0.7) !important;
}
