/* Контейнер таблицы */
.bt-table-container {
    margin: 25px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Панель управления */
.bt-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.bt-search-wrapper {
    flex: 1;
    min-width: 200px;
}

.bt-search-input {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: 2px solid #e8ddd0;
    border-radius: 30px;
    font-size: 14px;
    background: white;
    transition: all 0.2s;
}

.bt-search-input:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139,69,19,0.1);
}

.bt-export-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.bt-export-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Таблица */
.bt-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
}

.bt-responsive {
    overflow-x: auto;
}

.bt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 12px;
    overflow: hidden;
}

.bt-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.bt-table th:hover {
    filter: brightness(110%);
}

.bt-table td {
    padding: 10px 15px;
}

/* Стиль LEATHER (кожаный) */
.bt-style-leather {
    border: 1px solid #c4a47a;
    background: #fef5e8;
}

.bt-style-leather th {
    background: #8B4513;
    color: #fef5e8;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
}

.bt-style-leather td {
    border-bottom: 1px solid #e8cfb0;
    color: #3a2a1a;
}

/* Стиль DEFAULT */
.bt-style-default {
    border: 1px solid #ddd;
}

.bt-style-default th {
    background: #8B4513;
    color: white;
}

.bt-style-default td {
    border-bottom: 1px solid #eee;
}

/* Стиль STRIPED */
.bt-style-striped td {
    border: none;
}

.bt-style-striped tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* Стиль BORDERED */
.bt-style-bordered th,
.bt-style-bordered td {
    border: 1px solid #ddd;
}

/* Стиль COMPACT */
.bt-style-compact th,
.bt-style-compact td {
    padding: 6px 10px;
    font-size: 13px;
}

/* Стиль ELEGANT */
.bt-style-elegant {
    border: none;
}

.bt-style-elegant th {
    background: #2c3e50;
    color: #ecf0f1;
    font-weight: 400;
    letter-spacing: 1px;
}

.bt-style-elegant td {
    border-bottom: 1px solid #ecf0f1;
}

/* Эффект наведения */
.bt-hover-true tbody tr:hover {
    background: #f0e6d6 !important;
    transition: background 0.2s ease;
}

/* Сортировка */
.bt-sort-icon {
    display: inline-block;
    margin-left: 5px;
    font-size: 11px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

th:hover .bt-sort-icon {
    opacity: 1;
}

/* Пагинация */
.bt-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px;
}

.bt-prev-btn,
.bt-next-btn {
    background: #8B4513;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
}

.bt-prev-btn:hover:not(:disabled),
.bt-next-btn:hover:not(:disabled) {
    background: #654321;
    transform: translateY(-2px);
}

.bt-prev-btn:disabled,
.bt-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bt-page-info {
    font-size: 14px;
    color: #666;
}

/* Адаптивность */
@media (max-width: 768px) {
    .bt-table {
        font-size: 12px;
    }
    
    .bt-table th,
    .bt-table td {
        padding: 8px 10px;
    }
    
    .bt-controls {
        flex-direction: column;
    }
    
    .bt-search-input {
        max-width: 100%;
    }
    
    .bt-export-btn {
        align-self: flex-start;
    }
}