/**
 * GAI Inspector - Styles
 * Version: 1.0.2
 */

.inspector-home {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== ВСЕ ТЕКСТЫ - ЧЕРНЫЕ ДЛЯ ЧИТАЕМОСТИ ===== */
.inspector-home,
.category-page,
.search-results,
.violation-detail,
.article-results,
.inspector-home *,
.category-page *,
.search-results *,
.violation-detail *,
.article-results * {
    color: #1a1a1a !important;
}

.search-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    color: #1a1a1a !important;
    background: #ffffff !important;
}

.search-input:focus {
    outline: none;
    border-color: #0073aa;
}

.search-input::placeholder {
    color: #888888 !important;
}

.search-btn {
    padding: 12px 24px;
    background: #0073aa;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #005a87;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.category-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    color: #1a1a1a !important;
}

.category-card:hover {
    background: #e9ecef;
    border-color: #0073aa;
    transform: translateY(-2px);
}

.category-icon {
    font-size: 28px;
}

.category-name {
    flex: 1;
    font-weight: 500;
    color: #1a1a1a !important;
}

.category-count {
    background: #0073aa;
    color: #ffffff !important;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.btn-back {
    padding: 8px 16px;
    background: #6c757d;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 14px;
}

.btn-back:hover {
    background: #5a6268;
}

.violation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.violation-card {
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid #0073aa;
    color: #1a1a1a !important;
}

.violation-card:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.violation-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: #1a1a1a !important;
}

.violation-description {
    color: #4a4a4a !important;
    font-size: 14px;
    margin-bottom: 4px;
}

.violation-article {
    color: #0073aa !important;
    font-size: 14px;
    font-weight: 500;
}

.violation-fine {
    color: #dc3545 !important;
    font-size: 14px;
    margin-top: 4px;
}

/* Детали нарушения */
.violation-detail {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.violation-detail-header {
    margin-bottom: 24px;
}

.violation-detail-header h2 {
    margin: 0 0 8px 0;
    color: #1a1a1a !important;
}

.violation-article-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #0073aa;
    color: #ffffff !important;
    border-radius: 4px;
    font-size: 14px;
}

.detail-row {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a !important;
}

.detail-row p,
.detail-row span {
    color: #1a1a1a !important;
}

/* Пустые состояния */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.empty-state p {
    color: #1a1a1a !important;
    font-size: 18px;
    margin-bottom: 20px;
}

.btn-primary {
    padding: 10px 24px;
    background: #0073aa;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    background: #005a87;
}

.results-count {
    color: #1a1a1a !important;
    margin: 10px 0 20px 0;
}

.category-title {
    color: #1a1a1a !important;
}

h2 {
    color: #1a1a1a !important;
}

/* Адаптивность */
@media (max-width: 600px) {
    .search-section {
        flex-direction: column;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
}