/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ API МЕТРИК ===== */

/* Основные стили для страницы API метрик */
.api-metrics-dashboard {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
}

.api-metrics-header {
    text-align: center;
    margin-bottom: 30px;
}

.api-metrics-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.api-metrics-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Контейнер для карточек статистики */
.metrics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metrics-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.metrics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.metrics-card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.metrics-card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.metrics-card-value {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.metrics-card-subtitle {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Цветовые схемы для карточек */
.metrics-card.requests {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.metrics-card.endpoints {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.metrics-card.errors {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.metrics-card.error-rate {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.metrics-card.response-time {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Контейнер управления */
.metrics-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.metrics-controls h3 {
    margin: 0;
    font-size: 1.3rem;
}

.controls-group {
    display: flex;
    gap: 10px;
}

/* Специфичные кнопки для API метрик */
.control-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

.control-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:hover::after {
    width: 300px;
    height: 300px;
}

.control-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.control-btn:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.control-btn > * {
    position: relative;
    z-index: 2;
}

/* Кнопка синхронизации */
.control-btn.sync-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
    border: 2px solid rgba(79, 172, 254, 0.3);
}

.control-btn.sync-btn:hover {
    background: linear-gradient(135deg, #43a3f5 0%, #00d9fe 100%);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.7);
    border-color: rgba(79, 172, 254, 0.6);
}

.control-btn.sync-btn:active {
    background: linear-gradient(135deg, #3892e4 0%, #00c0e6 100%);
}

/* Кнопка обновления */
.control-btn.refresh-btn {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 8px 25px rgba(250, 112, 154, 0.5);
    border: 2px solid rgba(250, 112, 154, 0.3);
}

.control-btn.refresh-btn:hover {
    background: linear-gradient(135deg, #f199b8 0%, #fdd835 100%);
    box-shadow: 0 15px 40px rgba(250, 112, 154, 0.7);
    border-color: rgba(250, 112, 154, 0.6);
}

.control-btn.refresh-btn:active {
    background: linear-gradient(135deg, #e888a6 0%, #fccf2a 100%);
}

/* Кнопка снапшота */
.control-btn.snapshot-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    color: white;
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.control-btn.snapshot-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 1s ease;
    z-index: 1;
}

.control-btn.snapshot-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s ease, height 0.8s ease;
    z-index: 0;
}

.control-btn.snapshot-btn:hover::before {
    left: 100%;
}

.control-btn.snapshot-btn:hover::after {
    width: 400px;
    height: 400px;
}

.control-btn.snapshot-btn:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
}

.control-btn.snapshot-btn:active {
    background: linear-gradient(135deg, #d4491a 0%, #e55a1a 100%);
    transform: translateY(-3px) scale(0.95);
    transition: all 0.1s ease;
}

.control-btn.snapshot-btn > * {
    position: relative;
    z-index: 2;
}

/* Таблица эндпоинтов */
.endpoints-table-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.endpoints-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.endpoints-table th {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.endpoints-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.endpoints-table tr:hover td {
    background: rgba(255, 255, 255, 0.1);
}

.endpoints-table .endpoint-name {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endpoints-table .text-center {
    text-align: center;
}

.endpoints-table .error-rate.high {
    color: #ff6b6b;
    font-weight: bold;
}

.endpoints-table tr.error-high {
    background: rgba(255, 107, 107, 0.1);
}

.endpoints-table tr.error-medium {
    background: rgba(255, 193, 7, 0.1);
}

/* Прогресс бары */
.progress-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.progress-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.progress-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-fill.success {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

.progress-fill.error {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

/* Информация о последней синхронизации */
.sync-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.sync-info .sync-time {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Уведомления */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    background: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.notification.notification-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa8a8 100%);
    color: white;
}

.notification.notification-success {
    background: linear-gradient(135deg, #51cf66 0%, #8ce99a 100%);
    color: white;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    margin-left: auto;
    padding: 5px;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Поиск */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    padding-right: 35px !important;
}

.search-icon {
    position: absolute;
    right: 10px;
    color: #666;
    pointer-events: none;
}

/* Пагинация */
.pagination-controls {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Специфичные кнопки пагинации для API */
.api-pagination-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.api-pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.api-pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-info {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* Улучшенные стили для контролов */
.metrics-controls .controls-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.metrics-controls .search-container {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

/* Анимация для таблицы */
.endpoints-table tbody tr {
    transition: all 0.3s ease;
}

.endpoints-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1) !important;
    transform: translateX(2px);
}

/* Цветовая схема для строк с ошибками */
.endpoints-table tbody tr.error-high {
    background-color: rgba(255, 99, 132, 0.1);
    border-left: 4px solid #ff6384;
}

.endpoints-table tbody tr.error-medium {
    background-color: rgba(255, 206, 86, 0.1);
    border-left: 4px solid #ffce56;
}

.error-rate.high {
    color: #e74c3c;
    font-weight: bold;
}

/* Ячейка эндпоинта с дополнительной информацией */
.endpoint-cell {
    position: relative;
}

.endpoint-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
}

.endpoint-info {
    font-size: 11px;
    margin-top: 4px;
}

/* Стили для кодов ошибок */
.error-codes {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(231, 76, 60, 0.3);
}

/* Стили для обычного статус кода */
.status-code {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(52, 152, 219, 0.3);
}

/* Подсветка ячейки с количеством ошибок */
.error-count {
    font-weight: 600;
}

tr.error-high .error-count {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
}

tr.error-medium .error-count {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 4px;
}

/* Анимация для новых данных */
.endpoint-info {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== СТИЛИ ДЛЯ БЛОКА КАТЕГОРИЙ API ===== */

.categories-container {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.categories-header h3 {
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.categories-header .text-muted {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 1rem;
}

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-card {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.category-card:hover {
    border-color: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

.category-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 60px;
}

.category-header:hover {
    background: linear-gradient(135deg, #43a3f5 0%, #00d9fe 100%);
    transform: scale(1.02);
}

.category-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 200px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.category-stats {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 0;
    flex-wrap: nowrap;
}

.stat-item {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
    white-space: nowrap;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stat-item.high-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border: 2px solid rgba(238, 90, 82, 0.8);
    color: white;
    box-shadow: 0 2px 8px rgba(238, 90, 82, 0.3);
}

.stat-item.medium-error {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    border: 2px solid rgba(254, 202, 87, 0.8);
    color: #333;
    box-shadow: 0 2px 8px rgba(254, 202, 87, 0.3);
}

.stat-item.low-error {
    background: linear-gradient(135deg, #48c9b0, #1dd1a1);
    border: 2px solid rgba(29, 209, 161, 0.8);
    color: white;
    box-shadow: 0 2px 8px rgba(29, 209, 161, 0.3);
}

.stat-item.no-data {
    background: rgba(108, 117, 125, 0.4);
    border: 2px solid rgba(108, 117, 125, 0.6);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.category-toggle {
    margin-left: auto;
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.category-endpoints {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-top: 3px solid #667eea;
}

.endpoints-table-container {
    padding: 20px;
}

.endpoints-table-container .table {
    margin: 0;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.endpoints-table-container .table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-top: none;
    font-weight: 700;
    color: #ffffff;
    padding: 12px 10px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.endpoints-table-container .table td {
    padding: 12px 10px;
    vertical-align: middle;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    color: #333333;
    font-weight: 500;
}

.endpoints-table-container .table tbody tr:hover {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.endpoints-table-container code {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    color: #333333;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    word-break: break-all;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-error {
    color: #ff4757 !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 71, 87, 0.3);
}

.status-warning {
    color: #ffa502 !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 165, 2, 0.3);
}

.status-success {
    color: #2ed573 !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(46, 213, 115, 0.3);
}

/* Состояния загрузки */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.7;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state .empty-message {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.empty-state .empty-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .api-metrics-dashboard {
        padding: 15px;
    }
    
    .metrics-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .metrics-controls {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .controls-group {
        justify-content: center;
    }
    
    .endpoints-table {
        font-size: 0.8rem;
    }
    
    .endpoints-table .endpoint-name {
        max-width: 200px;
    }
    
    .progress-container {
        flex-direction: column;
        gap: 15px;
    }

    .metrics-controls .controls-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-container input {
        width: 100% !important;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 10px 12px;
        min-height: auto;
    }
    
    .category-header h4 {
        min-width: auto;
        margin-bottom: 8px;
    }
    
    .category-stats {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    
    .category-toggle {
        margin-left: 0;
        margin-top: 8px;
        align-self: center;
    }
    
    .endpoints-table-container {
        padding: 8px;
        overflow-x: auto;
    }
    
    .endpoints-table-container .table {
        min-width: 600px;
    }
}

/* Скрытие скроллбара в веб-ките */
.category-endpoints::-webkit-scrollbar {
    width: 6px;
}

.category-endpoints::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.category-endpoints::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.category-endpoints::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Анимация загрузки */
.categories-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.categories-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* Состояния кнопок */
.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Улучшенные badge */
.badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4em 0.8em;
    border-radius: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 2px solid rgba(255,255,255,0.3);
}

.bg-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52) !important;
    color: white !important;
}

.bg-warning {
    background: linear-gradient(135deg, #feca57, #ff9ff3) !important;
    color: #333 !important;
}

.bg-success {
    background: linear-gradient(135deg, #48c9b0, #1dd1a1) !important;
    color: white !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #74b9ff, #0984e3) !important;
    color: white !important;
} 