﻿.logviewer-page {
    background: radial-gradient(circle at top left, rgba(85, 110, 230, 0.08), transparent 30%), radial-gradient(circle at top right, rgba(16, 185, 129, 0.06), transparent 28%), #f6f8fc;
    min-height: calc(100vh - 80px);
}

.lv-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.lv-page-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #111827;
    letter-spacing: -0.02em;
}

.lv-page-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

.lv-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 0.35rem;
}

.lv-panel,
.lv-stat-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.lv-sidebar-panel {
    overflow: hidden;
}

.lv-panel-header {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lv-panel-header-table {
    padding-bottom: 1rem;
}

.lv-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.lv-panel-body {
    padding: 1.25rem;
}

.lv-filter-block + .lv-filter-block {
    margin-top: 1.25rem;
}

.lv-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.55rem;
}

.lv-input {
    border-radius: 14px;
    border: 1px solid #dbe3ef;
    min-height: 46px;
    box-shadow: none;
}

    .lv-input:focus {
        border-color: #818cf8;
        box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.12);
    }

.lv-server-box {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    padding: 0.6rem;
    background: #fafcff;
}

.lv-check-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

    .lv-check-row:hover {
        background: #f1f5ff;
    }

    .lv-check-row input {
        margin-top: 0;
    }

.lv-check-text {
    font-size: 0.93rem;
    color: #1f2937;
    word-break: break-word;
}

.lv-btn {
    border-radius: 14px;
    min-height: 44px;
    font-weight: 600;
    border: 0;
}

.lv-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
}

    .lv-btn-primary:hover {
        color: #fff;
        opacity: 0.96;
    }

.lv-btn-secondary {
    background: #eef2f7;
    color: #374151;
}

    .lv-btn-secondary:hover {
        background: #e5ebf3;
        color: #111827;
    }

.lv-btn-soft {
    background: #f3f6fb;
    color: #475569;
    border: 1px solid #e2e8f0;
    min-height: 34px;
    border-radius: 10px;
}

    .lv-btn-soft:hover {
        background: #eaf0f8;
        color: #1f2937;
    }

.lv-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 700;
}

.lv-chip-muted {
    background: #f3f4f6;
    color: #4b5563;
}

.lv-stat-card {
    padding: 1.15rem 1.2rem;
    height: 100%;
}

.lv-stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.lv-stat-value {
    font-size: 1.9rem;
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
}

.lv-stat-sub {
    margin-top: 0.45rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.lv-table {
    font-size: 0.85rem;
}

.lv-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.55rem 0.6rem;
    white-space: nowrap;
}

    .lv-table tbody td {
        padding: 0.55rem 0.6rem;
        border-top: 1px solid #f1f5f9;
        color: #111827;
        vertical-align: middle;
    }

.lv-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.035);
}

.lv-status-badge,
.lv-server-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.lv-server-badge {
    background: #eff6ff;
    color: #2563eb;
}

.lv-status-success {
    background: #ecfdf3;
    color: #15803d;
}

.lv-status-error {
    background: #fef2f2;
    color: #dc2626;
}

.lv-status-neutral {
    background: #f3f4f6;
    color: #4b5563;
}

.lv-empty-state {
    border: 1px dashed #d6deea;
    border-radius: 18px;
    background: #fafcff;
    padding: 2.2rem 1.5rem;
    text-align: center;
}

.lv-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.4rem;
}

.lv-empty-text {
    color: #6b7280;
    font-size: 0.92rem;
}

.lv-server-cell {
    width: auto;
    max-width: 340px;
    white-space: normal;
    word-break: break-word;
    color: #334155;
    font-size: 0.9rem;
}

.lv-metric-cell {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 78px;
}

.lv-metric-main {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.15;
    color: #111827;
}

.lv-metric-sub {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.1;
}

.lv-table th:nth-child(4),
.lv-table th:nth-child(5),
.lv-table th:nth-child(6),
.lv-table td:nth-child(4),
.lv-table td:nth-child(5),
.lv-table td:nth-child(6) {
    width: 70px;
}

.lv-export-link {
    text-decoration: none;
    font-weight: 600;
}

    .lv-export-link:hover {
        text-decoration: underline;
    }

.lv-link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

    .lv-link-button:hover {
        text-decoration: underline;
    }

.lv-export-summary {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
}

    .lv-export-summary strong {
        color: #495057;
    }

.lv-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lv-loading-box {
    text-align: center;
    padding: 30px 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

@media (max-width: 1199.98px) {
    .sticky-xl-top {
        position: static !important;
    }
}

.lv-panel-header-main,
.lv-panel-header-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lv-panel-header-actions {
    align-items: flex-start;
}

.lv-table-desktop {
    display: block;
}

.lv-mobile-cards {
    display: none;
}

.lv-mobile-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    padding: 14px;
    margin: 12px;
}

.lv-mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.lv-mobile-card-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    color: #111827;
    word-break: break-word;
}

.lv-mobile-card-subtitle {
    font-size: 0.82rem;
    color: #6b7280;
    margin-top: 4px;
    word-break: break-word;
}

.lv-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lv-mobile-item {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 10px 12px;
    min-width: 0;
}

.lv-mobile-label {
    display: block;
    font-size: 0.72rem;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.lv-mobile-value {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #111827;
    word-break: break-word;
}

.lv-mobile-sub {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
    word-break: break-word;
}

.lv-export-columns label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    width: 100%;
    background: #fff;
    min-height: 42px;
}

.lv-export-columns input[type="checkbox"] {
    flex-shrink: 0;
}

.modal-content {
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.modal-header,
.modal-footer {
    border-color: #eef2f7;
}

.lv-export-summary span,
.lv-page-subtitle,
.lv-stat-sub,
.lv-check-text,
.lv-server-cell {
    word-break: break-word;
}

@media (max-width: 1199.98px) {
    .sticky-xl-top {
        position: static !important;
    }

    .lv-panel-header.lv-panel-header-table {
        flex-direction: column;
        align-items: stretch;
    }

    .lv-panel-header-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .logviewer-page {
        min-height: auto;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

        .logviewer-page.container-fluid {
            padding-left: 12px;
            padding-right: 12px;
        }

    .lv-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .lv-page-title {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .lv-page-subtitle {
        font-size: 0.9rem;
    }

    .lv-panel,
    .lv-stat-card {
        border-radius: 18px;
    }

    .lv-panel-header {
        padding: 1rem;
        align-items: stretch;
    }

    .lv-panel-body {
        padding: 1rem;
    }

    .lv-filter-block + .lv-filter-block {
        margin-top: 1rem;
    }

    .lv-input {
        min-height: 44px;
        font-size: 16px;
    }

    .lv-server-box {
        max-height: 220px;
        padding: 0.45rem;
    }

    .lv-check-row {
        align-items: flex-start;
        gap: 0.65rem;
        padding: 0.65rem;
    }

        .lv-check-row input {
            margin-top: 0.2rem;
            flex-shrink: 0;
        }

    .lv-btn {
        min-height: 42px;
    }

    .lv-btn-soft {
        min-height: 38px;
    }

    .lv-panel-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

        .lv-panel-header-actions .lv-btn,
        .lv-panel-header-actions .lv-chip {
            width: 100%;
            text-align: center;
            justify-content: center;
        }

    .lv-stat-card {
        padding: 1rem;
    }

    .lv-stat-label {
        font-size: 0.75rem;
    }

    .lv-stat-value {
        font-size: 1.45rem;
    }

    .lv-stat-sub {
        font-size: 0.8rem;
    }

    .lv-table-desktop {
        display: none;
    }

    .lv-mobile-cards {
        display: block;
        padding: 0;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .lv-mobile-grid {
        grid-template-columns: 1fr;
    }

    .lv-export-summary .row > div {
        margin-bottom: 6px;
    }

    .lv-loading-box {
        width: min(92vw, 320px);
        padding: 24px 20px;
        border-radius: 16px;
    }
}

@media (max-width: 420px) {
    .lv-page-title {
        font-size: 1.28rem;
    }

    .lv-stat-value {
        font-size: 1.25rem;
    }

    .lv-mobile-card {
        padding: 12px;
        margin: 10px;
    }

    .lv-mobile-card-header {
        flex-direction: column;
        align-items: stretch;
    }

        .lv-mobile-card-header .lv-kpi-link {
            width: 100%;
        }

    .lv-chip {
        font-size: 0.72rem;
    }
}
