@font-face {
    font-family: 'skoda_proregular';
    src: url('../fonts/skoda_pro-webfont.woff2') format('woff2'),
    url('../fonts/skoda_pro-webfont.woff') format('woff'),
    url('../fonts/skoda_pro-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'skoda_probold';
    src: url('../fonts/skoda_pro_bold-webfont.eot');
    src: url('../fonts/skoda_pro_bold-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/skoda_pro_bold-webfont.woff2') format('woff2'),
    url('../fonts/skoda_pro_bold-webfont.woff') format('woff'),
    url('../fonts/skoda_pro_bold-webfont.svg#skoda_probold') format('svg');
    font-weight: normal;
    font-style: normal;
}

body.skodafont {
    font-family: 'skoda_proregular', 'Nunito', sans-serif !important;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.error p {
    color: red;
}

.font-weight-bold {
    font-family: 'skoda_probold';
    font-weight: 700;
}

.page-title {
    font-family: 'skoda_probold', 'Nunito', sans-serif;
    font-weight: 700;
    text-shadow: none;
}

/* Стилі для поля вибору дати - прибираємо обводку */
#singledaterange {
    border: none !important;
    box-shadow: none !important;
}

#singledaterange:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Контрастний колір тексту */
.text-muted {
    color: #333 !important;
}

html[data-bs-theme=dark] .text-muted {
    color: #fff !important;
}

.text-secondary {
    color: #333 !important;
}

html[data-bs-theme=dark] .text-secondary {
    color: #fff !important;
}

.text-light {
    color: #333 !important;
}

html[data-bs-theme=dark] .text-light {
    color: #fff !important;
}

/* Покращений дизайн сповіщень */
.alert {
    border: none !important;
    border-radius: 12px !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.8;
}

.alert:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    color: #155724 !important;
    border-left: 4px solid #28a745 !important;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
    color: #721c24 !important;
    border-left: 4px solid #dc3545 !important;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    color: #856404 !important;
    border-left: 4px solid #ffc107 !important;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
    color: #0c5460 !important;
    border-left: 4px solid #17a2b8 !important;
}

.alert-primary {
    background: linear-gradient(135deg, #cce5ff 0%, #b3d7ff 100%) !important;
    color: #004085 !important;
    border-left: 4px solid #007bff !important;
}

.alert-secondary {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%) !important;
    color: #383d41 !important;
    border-left: 4px solid #6c757d !important;
}

.alert-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057 !important;
    border-left: 4px solid #6c757d !important;
}

.alert-dark {
    background: linear-gradient(135deg, #d6d8db 0%, #c6c8ca 100%) !important;
    color: #1b1e21 !important;
    border-left: 4px solid #343a40 !important;
}

/* Стилі для іконок в сповіщеннях */
.alert i {
    font-size: 1.1rem !important;
    margin-right: 0.5rem !important;
    vertical-align: middle !important;
}

/* Стилі для кнопки закриття */
.alert .btn-close {
    background: none !important;
    border: none !important;
    font-size: 1.2rem !important;
    opacity: 0.7 !important;
    transition: opacity 0.3s ease !important;
    padding: 0.5rem !important;
    margin: -0.5rem -0.5rem -0.5rem 0 !important;
}

.alert .btn-close:hover {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

/* Анімація появи сповіщень */
.alert.fade.show {
    animation: slideInDown 0.5s ease-out !important;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Темна тема для сповіщень */
html[data-bs-theme=dark] .alert-success {
    background: linear-gradient(135deg, #1e4a2e 0%, #2d5a3d 100%) !important;
    color: #d4edda !important;
}

html[data-bs-theme=dark] .alert-danger {
    background: linear-gradient(135deg, #4a1e1e 0%, #5a2d2d 100%) !important;
    color: #f8d7da !important;
}

html[data-bs-theme=dark] .alert-warning {
    background: linear-gradient(135deg, #4a3e1e 0%, #5a4d2d 100%) !important;
    color: #fff3cd !important;
}

html[data-bs-theme=dark] .alert-info {
    background: linear-gradient(135deg, #1e4a4a 0%, #2d5a5a 100%) !important;
    color: #d1ecf1 !important;
}

html[data-bs-theme=dark] .alert-primary {
    background: linear-gradient(135deg, #1e3a4a 0%, #2d4a5a 100%) !important;
    color: #cce5ff !important;
}

html[data-bs-theme=dark] .alert-secondary {
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%) !important;
    color: #e2e3e5 !important;
}

html[data-bs-theme=dark] .alert-light {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%) !important;
    color: #f8f9fa !important;
}

html[data-bs-theme=dark] .alert-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
    color: #d6d8db !important;
}

/* Додаткові стилі для кращого відображення */
.alert ul {
    margin-bottom: 0 !important;
}

.alert li {
    margin-bottom: 0.25rem !important;
}

.alert li:last-child {
    margin-bottom: 0 !important;
}

/* Видалено автоматичне закриття сповіщень */

/* Toast сповіщення в верхньому правому куті */
#toast-container {
    z-index: 9999;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-header {
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 0.75rem 1rem;
}

.toast-body {
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.toast .btn-close {
    padding: 0.5rem;
    margin: 0;
}

/* Темна тема для toast */
html[data-bs-theme=dark] .toast {
    background-color: var(--ct-body-bg);
    color: var(--ct-body-color);
}

html[data-bs-theme=dark] .toast-header {
    background-color: var(--ct-tertiary-bg);
    color: var(--ct-body-color);
}

/* Стилі для сповіщень в стилі теми Hyper */
.notification-list {
    padding: 0;
}

.notification-list .notify-item {
    padding: 10px 20px;
    transition: all 0.2s ease-in-out;
}

.notification-list .notify-item.unread-noti {
    background-color: var(--ct-tertiary-bg);
}

.notification-list .notify-item.read-noti {
    background-color: transparent;
    border: 1px solid var(--ct-border-color-custom);
}

.notification-list .notify-item.read-noti:hover {
    background-color: var(--ct-tertiary-bg);
}

.notification-list .notify-item .notify-icon {
    float: left;
    height: 36px;
    width: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
}

.notification-list .notify-item .notify-details {
    margin-bottom: 0;
    overflow: hidden;
    margin-left: 45px;
}

.notification-list .notify-item .notify-details b {
    font-weight: 500;
}

.notification-list .notify-item .notify-details small {
    display: block;
}

/* Покращена кнопка "Позначити всі як прочитані" */
.dropdown-footer.noti-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--ct-border-color-custom);
    background-color: var(--ct-tertiary-bg);
}

.mark-all-read-form {
    margin: 0;
}

.mark-all-read-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    border-width: 1px;
    border-style: solid;
}

.mark-all-read-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
}

.mark-all-read-btn:active {
    transform: translateY(0);
}

.mark-all-read-btn i {
    font-size: 14px;
}

/* Темна тема для кнопки */
html[data-bs-theme=dark] .dropdown-footer.noti-footer {
    background-color: var(--ct-tertiary-bg);
    border-top-color: var(--ct-border-color-custom);
}

html[data-bs-theme=dark] .mark-all-read-btn {
    border-color: var(--ct-primary-border-subtle);
    color: var(--ct-primary-text-emphasis);
}

html[data-bs-theme=dark] .mark-all-read-btn:hover {
    background-color: var(--ct-primary-bg-subtle);
    border-color: var(--ct-primary-border-subtle);
    color: var(--ct-primary-text-emphasis);
}
