* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    line-height: 1.5;
}

.lv-container {
    padding: 1.5rem;
}

.lv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.lv-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.lv-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

.lv-filters {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.lv-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.lv-form-group {
    display: flex;
    flex-direction: column;
}

.lv-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.25rem;
}

.lv-select,
.lv-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: #ffffff;
    transition: border-color 0.15s ease;
}

.lv-select:focus,
.lv-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.lv-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lv-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lv-radio-row {
    display: flex;
    gap: 1rem;
}

.lv-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.lv-radio-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 4px;
}

.lv-checkbox {
    border-radius: 0.25rem;
    color: #3b82f6;
    width: 1rem;
    height: 1rem;
    accent-color: #3b82f6;
}

.lv-radio {
    border-radius: 50%;
    color: #3b82f6;
    width: 1rem;
    height: 1rem;
    accent-color: #3b82f6;
}

.lv-checkbox-text {
    margin-left: 0.25rem;
    font-size: 0.875rem;
}

.lv-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.lv-btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.lv-btn-primary:hover {
    background-color: #1d4ed8;
}

.lv-btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
}

.lv-btn-secondary:hover {
    background-color: #e2e8f0;
}

.lv-table-container {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.lv-table {
    width: 100%;
    border-collapse: collapse;
}

.lv-table th,
.lv-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.lv-table th {
    background-color: #f8fafc;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lv-table tbody tr:hover {
    background-color: #f8fafc;
}

.lv-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
}

.lv-badge-err,
.lv-badge-ftl {
    background-color: #fee2e2;
    color: #991b1b;
}

.lv-badge-wrn {
    background-color: #fef3c7;
    color: #92400e;
}

.lv-badge-inf,
.lv-badge-dbg {
    background-color: #dbeafe;
    color: #1e40af;
}

.lv-text-secondary {
    color: #64748b;
}

.lv-text-primary {
    color: #1e293b;
}

.lv-link {
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.lv-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.lv-load-more {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.lv-load-more-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.lv-load-more-btn:hover {
    background-color: #e2e8f0;
}

.lv-empty {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

/* Details Panel */
.lv-details-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40rem;
    background-color: #ffffff;
    box-shadow: -4px 0 6px -1px rgb(0 0 0 / 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 50;
}

.lv-details-panel.open {
    transform: translateX(0);
}

.lv-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.lv-details-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.lv-details-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
}

.lv-details-close:hover {
    color: #475569;
}

.lv-details-close svg {
    width: 1.5rem;
    height: 1.5rem;
}

.lv-details-body {
    padding: 1rem;
    overflow-y: auto;
    height: calc(100% - 4rem);
}

.lv-details-section {
    margin-bottom: 1rem;
}

.lv-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.lv-details-id {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.lv-details-date,
.lv-details-time {
    color: #64748b;
    font-size: 0.875rem;
}

.lv-details-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.lv-copy-btn {
    font-size: 0.75rem;
    color: #2563eb;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.lv-copy-btn:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.lv-copy-btn-copied {
    color: #16a34a;
}

.lv-search-group {
    flex: 1;
    min-width: 200px;
}

.lv-search-row {
    display: flex;
    gap: 0.5rem;
}

.lv-search-row .lv-input {
    flex: 1;
}

.lv-details-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.lv-details-value {
    font-size: 0.875rem;
    color: #1e293b;
}

.lv-details-code {
    padding: 0.75rem;
    background-color: #f8fafc;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.lv-details-code-small {
    padding: 0.75rem;
    background-color: #f1f5f9;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: #475569;
    white-space: pre-wrap;
    word-break: break-all;
}

.lv-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lv-files-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #1e293b;
}

.lv-files-item:last-child {
    border-bottom: none;
}

/* Loading state */
.lv-loading {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

/* Projects Grid */
.lv-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.lv-project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #fcfcfc;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    text-decoration: none;
    color: #1e293b;
    transition: all 0.15s ease;
}

.lv-project-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}

.lv-project-icon svg {
    width: 100%;
    height: 100%;
}

.lv-project-name {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Header with back button */
.lv-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lv-back-btn {
    color: #64748b;
    transition: all 0.15s ease;
}

.lv-back-btn:hover {
    color: #1e293b;
}

.lv-back-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.lv-project-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e0e7ff;
    color: #3730a3;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
}
