/* Основные стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Навигация */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Карточки */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.calendar-card {
    min-height: 400px;
}

.calendar-card .card-header {
    border-bottom: 2px solid #007bff;
}

/* Календарь */
.calendar-table {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.calendar-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
    padding: 8px;
    border: 1px solid #dee2e6;
}

.calendar-table td {
    text-align: center;
    padding: 10px;
    border: 1px solid #dee2e6;
    height: 40px;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.calendar-table td:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}

.calendar-table td.work-day {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

.calendar-table td.empty {
    background-color: #f8f9fa;
    color: #ccc;
}

/* Сводки */
.month-summary {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.total-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.total-summary-card .card-body {
    padding: 1.5rem;
}

/* Информационная карточка */
.info-card {
    border-left: 4px solid #007bff;
}

.info-card .card-title {
    color: #007bff;
    font-weight: 600;
}

/* Форма */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus,
.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

/* Кнопки */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

/* Футер */
footer {
    margin-top: auto;
    border-top: 3px solid #007bff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .calendar-table td {
        padding: 6px;
        font-size: 0.8rem;
    }

    .calendar-card {
        min-height: 350px;
    }

    .btn-primary {
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .calendar-table {
        font-size: 0.75rem;
    }

    .calendar-table td {
        padding: 4px;
        height: 35px;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-card {
    animation: fadeIn 0.5s ease forwards;
}

/* Прогрессивное появление */
.calendar-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.calendar-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Стили для печати */
@media print {
    .no-print {
        display: none !important;
    }

    .calendar-table td.work-day {
        background-color: #4CAF50 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

.calendar-table td {
    width: 14.28%;
    height: 40px;
    text-align: center;
    vertical-align: middle;
}

.work-day {
    background-color: #d4edda;
}

.night-shift {
    background-color: #cce5ff;
}

.evening-shift {
    background-color: #fff3cd;
}

.empty {
    background-color: #f8f9fa;
}

.month-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 8px;
    margin-top: 10px;
}

.legend-workday {
    background-color: #d4edda;
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 4px;
}

.legend-mix {
    background-color: #d1c4e9;
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 4px;
}

.legend-holiday {
    background-color: #f8d7da;
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 4px;
}

.legend-today {
    background-color: #fff3cd;
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 4px;
}

.trending-link {
    transition: all 0.2s;
}

.trending-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.qr-modal.show {
    display: flex;
}

.qr-modal-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
}

#copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

#copy-toast.show {
    opacity: 1;
}

.btn-outline-primary {
    border-color: #3498db;
    color: #3498db;
}

.btn-outline-primary:hover {
    background: #3498db;
    color: white;
}