/* Кастомные стили для проекта */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Навигация */
.navbar-brand {
    font-weight: 700;
    color: #0d6efd !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
}

.nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: #0d6efd;
    color: white !important;
}

/* Карточки */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
}

.card-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Кнопки */
.btn {
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
}

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

/* Формы */
.form-control {
    border-radius: 0.75rem;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

/* Хлебные крошки */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Баннер */
.banner {
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Иконки */
.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-wrapper:hover {
    transform: scale(1.1);
}

/* Списки */
.list-group-item {
    border: none;
    border-radius: 0.5rem !important;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Футер */
footer {
    margin-top: auto;
}

footer a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0d6efd;
}

/* Адаптивность */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .banner-content {
        text-align: center;
        padding: 1rem;
    }
}

/* Утилиты */
.text-gradient {
    background: linear-gradient(45deg, #0d6efd, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* Telegram кнопка */
.btn-telegram {
    background: #0088cc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-telegram:hover {
    background: #0077b5;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.btn-telegram i {
    margin-right: 6px;
    font-size: 1.1em;
}

/* Telegram аватар в меню */
.telegram-avatar {
    border: 2px solid #0088cc;
}

.telegram-badge {
    background: #0088cc;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Telegram мини-кнопка в dropdown */
.telegram-mini-btn {
    width: 100%;
    text-align: center;
    margin: 8px 0;
}

/* Иконка Telegram в социальных сетях */
.bi-telegram {
    color: #0088cc !important;
}

.bi-telegram:hover {
    color: #0077b5 !important;
}

/* Исправление для календаря */
.calendar-weekdays {
    background-color: #f8f9fa;
    font-weight: bold;
    padding: 10px 0;
}

.calendar-day {
    border: 1px solid #dee2e6;
    min-height: 120px;
    padding: 8px;
    transition: background-color 0.2s;
}

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

.calendar-day.other-month {
    background-color: #f8f9fa;
    color: #6c757d;
}

.calendar-day.today {
    background-color: #e7f5ff;
    border-color: #0d6efd;
}

.day-event {
    font-size: 0.75rem;
    padding: 2px 5px;
    margin-bottom: 2px;
    border-radius: 3px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

/* Исправление для файлового менеджера */
.file-item.selected {
    border-color: #0d6efd;
    background-color: #e7f5ff;
}

.file-item .file-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

/* Исправление для чата */
.chat-messages {
    scroll-behavior: smooth;
}

.message-own {
    text-align: right;
}

.message-other {
    text-align: left;
}

.typing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6c757d;
    margin: 0 2px;
    animation: typing 1.4s infinite both;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}
