/* Base layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Bootstrap overrides for custom styles */
.container-fluid {
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Prevent horizontal scroll */
.main-content-wrapper * {
    max-width: 100%;
    box-sizing: border-box;
}

.main-content-wrapper pre,
.main-content-wrapper code {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
}

.main-content-wrapper table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto;
    display: table;
}

.main-content-wrapper th,
.main-content-wrapper td {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.main-content-wrapper .row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.main-content-wrapper form {
    max-width: 100%;
    overflow-x: hidden;
}

form {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Bootstrap form overrides - используем стандартные Bootstrap стили для форм */
.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
}

/* Улучшаем стили для заголовков секций */
h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    color: #212529;
    /* border-bottom: 2px solid #e9ecef; */
    padding-bottom: 0.375rem;
}

/* Улучшаем стили полей формы для лучшего внешнего вида */
/* Важно: используем !important чтобы переопределить возможные конфликты */
form .form-control,
form .form-select,
form input.form-control,
form select.form-select,
form textarea.form-control,
.form-control,
.form-select,
input.form-control,
select.form-select,
textarea.form-control {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

form .form-control:focus,
form .form-select:focus,
form input.form-control:focus,
form select.form-select:focus,
form textarea.form-control:focus,
.form-control:focus,
.form-select:focus,
input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
    color: #212529 !important;
    background-color: #fff !important;
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

form .form-control:hover:not(:focus),
form .form-select:hover:not(:focus),
form input.form-control:hover:not(:focus),
form select.form-select:hover:not(:focus),
.form-control:hover:not(:focus),
.form-select:hover:not(:focus),
input.form-control:hover:not(:focus),
select.form-select:hover:not(:focus) {
    border-color: #adb5bd !important;
}

/* Улучшаем стили для textarea */
form textarea.form-control,
textarea.form-control {
    min-height: calc(1.5em + 0.5rem + 2px) !important;
    resize: vertical !important;
}

/* Компактные стили для маленьких форм */
.form-control-sm,
.form-select-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    border-radius: 0.25rem !important;
}

/* Улучшаем стили для date input */
form input[type="date"].form-control,
input[type="date"].form-control {
    padding: 0.5rem 0.75rem !important;
}

/* Улучшаем стили для number input */
form input[type="number"].form-control,
input[type="number"].form-control {
    padding: 0.5rem 0.75rem !important;
}

/* Улучшаем стили для select */
form select.form-select,
select.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.5rem !important;
}

/* Кастомные стили только для специфических случаев, где Bootstrap не подходит */

.form-group {
    margin-bottom: 0.75rem;
    position: relative;
}


.route-segment-input-wrapper {
    position: relative;
}

.row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.col {
    flex: 1 1 150px;
    min-width: 150px;
}

.col.small {
    flex: 1 1 90px;
    min-width: 90px;
}

.col.medium {
    flex: 1 1 150px;
}

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

button:hover {
    background: #0056b3;
}

button:focus,
button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Убираем outline у всех Bootstrap кнопок */
.btn,
.btn-primary,
.btn-success,
.btn-danger,
.btn-secondary,
.btn-outline-secondary {
    outline: none !important;
}

.btn:focus,
.btn:focus-visible,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-success:focus,
.btn-success:focus-visible,
.btn-danger:focus,
.btn-danger:focus-visible,
.btn-secondary:focus,
.btn-secondary:focus-visible,
.btn-outline-secondary:focus,
.btn-outline-secondary:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Top header with logo */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.top-header-content {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: #f8f9fa;
    color: #212529;
}

/* Sidebar toggle button placed in top header */
.sidebar-toggle-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25rem;
}

.logo-link {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    background-color: #ffc107;
    padding: 0.25em 0.6em;
    border-radius: 0.25rem;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1;
    transition: background-color 0.2s;
}

.logo-link:hover {
    background-color: #ffca2c;
    text-decoration: none;
    color: #000;
}

.logo-text {
    color: #000;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100vh - 60px);
    background: #fff;
    border-right: 1px solid #e9ecef;
    transition: width 0.3s ease, transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.sidebar-collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-toggle:hover {
    background-color: #f8f9fa;
    color: #212529;
}

.sidebar-nav {
    padding: 0.25rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    line-height: 1.2;
}

.sidebar-link:hover {
    background-color: #f8f9fa;
    color: #212529;
    text-decoration: none;
}

.sidebar-link-active {
    background-color: #e7f3ff;
    color: #0056b3;
    border-left-color: #0056b3;
    font-weight: 600;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.sidebar-link-text {
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar-link i.sidebar-caret {
    width: auto;
    margin-right: 0;
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* caret rotation when expanded */
.sidebar-group-toggle[aria-expanded="true"] .sidebar-caret {
    transform: rotate(180deg);
}

.sidebar-group-toggle-active {
    font-weight: 600;
}

.sidebar-subnav {
    padding: 0.15rem 0 0.25rem 0.5rem;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    border-left: 3px solid transparent;
    font-size: 0.85rem;
    line-height: 1.15;
}

.sidebar-sublink:hover {
    background-color: #f8f9fa;
    color: #212529;
    text-decoration: none;
}

.sidebar-sublink-active {
    background-color: #e7f3ff;
    color: #0056b3;
    border-left-color: #0056b3;
    font-weight: 600;
}

.sidebar-sublink i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.sidebar-collapsed .sidebar-link-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 0.75rem 0.5rem;
}

.sidebar-collapsed .sidebar-link i {
    margin-right: 0;
}

.sidebar-collapsed .sidebar-link i.sidebar-caret {
    display: none;
}

.sidebar-collapsed #sidebarDataProviders {
    display: none !important;
}

/* Main content wrapper */
.main-content-wrapper {
    margin-left: 250px;
    margin-top: 60px;
    padding: 2rem;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 60px);
    max-width: calc(100vw - 250px - 4rem);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.main-content-expanded {
    margin-left: 70px;
    max-width: calc(100vw - 70px - 4rem);
}

/* Responsive design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    
    .sidebar.sidebar-mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-collapsed {
        width: 250px;
    }
    
    .main-content-wrapper {
        margin-left: 0;
        padding: 1rem;
        max-width: 100vw;
        width: 100%;
    }
    
    .main-content-expanded {
        margin-left: 0;
        max-width: 100vw;
    }
    
    .top-header {
        padding: 0 0.5rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
}

/* Page title row adjustments */
.page-title-row {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.page-title-row h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
}

/* Top navigation (old - для обратной совместимости) */
.top-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.top-nav-title {
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    color: #000;
    background-color: #ffc107;
    padding: 0.25em 0.6em;
    border-radius: 0.25rem;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1;
}

.top-nav-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
    background-color: #e2e6ea;
    text-decoration: none;
}

.nav-link-active {
    font-weight: bold;
    background-color: #007bff;
    color: white !important;
}

.nav-link-active:hover {
    background-color: #0056b3;
    color: white !important;
}

/* Page title row */
.page-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-title-row h1 {
    margin: 0;
}

.history-link {
    font-size: 0.95rem;
    color: #007bff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.history-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Autocomplete styles */
.autocomplete-results {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    display: none;
}

.autocomplete-item {
    padding: 0.5rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f0f0f0;
}

/* City input wrapper (Amadeus Hotels, Duffel Stays, Trivago) */
.city-input-wrapper {
    position: relative;
}

.city-input-wrapper .autocomplete-results {
    top: 100%;
    left: 0;
    margin-top: 2px;
}

/* Passport and Visa fields */
.passport-field-wrapper,
.visa-field-wrapper {
    position: relative;
}

.passport-field-wrapper .autocomplete-results,
.visa-field-wrapper .autocomplete-results {
    z-index: 1001;
    top: auto;
    left: auto;
    border-top: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    margin-top: 0;
}

.remove-passport-btn,
.remove-visa-btn {
    position: absolute;
    right: 0.5rem;
    top: 8px;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.remove-passport-btn:hover,
.remove-visa-btn:hover {
    opacity: 1;
}

.remove-passport-btn i,
.remove-visa-btn i {
    line-height: 1;
}

.autocomplete-code {
    font-weight: bold;
    color: #007bff;
}

.autocomplete-city {
    color: #333;
}

/* Debug & results styles */
.debug-toggle {
    cursor: pointer;
    color: #007bff;
    font-size: 0.85rem;
    text-decoration: underline;
    margin-top: 0.5rem;
    display: inline-block;
}

.debug-content {
    display: none;
    background: #f4f4f4;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 0.5rem;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.85rem;
    overflow-x: auto;
}

.debug-content.visible {
    display: block;
}

.main-debug {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
}

.offer {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.offer .airline {
    font-weight: bold;
    font-size: 1.1rem;
}

.offer .price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* History page */
.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-item {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 0.5rem;
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-meta {
    font-size: 0.9rem;
    color: #333;
}

.history-meta-date {
    font-weight: bold;
    margin-bottom: 0.25rem;
    display: block;
}

.history-meta-info {
    color: #666;
    font-size: 0.85rem;
}

.history-actions a {
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 0.4rem;
}

.btn-secondary {
    background: #eee;
    color: #333;
}

/* Bootstrap button overrides - используем стандартные Bootstrap стили */
/* Кастомные стили только для специфических случаев */

/* Убираем outline у всех кнопок при фокусе */
.btn:focus,
.btn:active,
.btn:focus-visible,
button:focus,
button:active,
button:focus-visible,
input[type="submit"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus-visible,
input[type="button"]:focus,
input[type="button"]:active,
input[type="button"]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Убираем outline у кнопок Bootstrap */
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible,
.btn-success:focus,
.btn-success:active,
.btn-success:focus-visible,
.btn-danger:focus,
.btn-danger:active,
.btn-danger:focus-visible,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:focus-visible,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Provider select */
.provider-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.provider-card {
    box-sizing: border-box;
    border: 1px solid #ddd;
    padding: 2.5rem;
    border-radius: 8px;
    width: 290px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    background: #f9f9f9;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.provider-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.provider-status {
    font-size: 0.9rem;
    color: #666;
}

.status-active {
    color: #28a745;
}

.status-soon {
    color: #ffc107;
}

.logo-badge {
    font-weight: bold;
    font-size: 2rem;
    text-decoration: none;
    color: #000;
    background-color: #ffc107;
    padding: 0.25em 0.6em;
    border-radius: 0.25rem;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1;
}

/* Trivago-specific */
.filters-columns {
    display: flex;
    gap: 1rem;
}

.filters-columns .col {
    flex: 1;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: normal;
}

.checkbox-inline input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.star-rating-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.star-rating-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: normal;
}

.star-rating-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.hotel-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    background: white;
}

.hotel-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    background: #eee;
}

.hotel-info {
    flex: 1;
}

.hotel-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.hotel-rating {
    background: #007bff;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.hotel-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
}

/* Form footer actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* Misc */
.back-link {
    display: block;
    margin-bottom: 1rem;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Route segments horizontal layout */
.route-segments-horizontal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.route-segment-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.route-segment {
    position: relative;
}

.route-segment-input-wrapper {
    position: relative;
    display: inline-block;
}

.route-input {
    min-width: 200px;
    max-width: 250px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.route-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.route-arrow {
    color: #666;
    font-size: 1.2rem;
    padding: 0 0.25rem;
    flex-shrink: 0;
}

.route-remove-btn {
    position: absolute;
    right: 0.5rem;
    top: 8px;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.route-remove-btn:hover {
    opacity: 1;
}

.route-remove-btn i {
    line-height: 1;
}

.add-destination-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.add-destination-btn:hover {
    background: #218838;
}

/* Collapsible prompt */
.collapsible-header {
    transition: background-color 0.2s;
}

.collapsible-header:hover {
    background: #e9e9e9 !important;
}

.collapsible-header i {
    transition: transform 0.3s;
}

.collapsible-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Status indicators */
.status-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    margin-top: 1rem;
}

.status-success {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin-top: 1rem;
}

/* Admin dict tables: fixed column widths, smaller font, truncation */
.dict-table-wrapper {
    font-size: 0.8125rem;
}
.dict-table-wrapper .dict-table {
    table-layout: fixed;
    width: 100% !important;
}
.dict-table-wrapper .dict-table th,
.dict-table-wrapper .dict-table td {
    min-width: 0;
    word-break: break-word;
}
.dict-table-wrapper .dict-table td.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dict-table-wrapper .dict-table td code,
.dict-table-wrapper .dict-table th code {
    font-size: 0.9em;
}


