/* Error Logs Page Styles */
.errorlogs-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.errorlogs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.errorlogs-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.error-summary {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.error-summary .summary-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #6c757d;
}

.error-summary .summary-item.critical {
    background: #fff5f5;
    border-left-color: #dc3545;
}

.error-summary .summary-item.critical strong {
    color: #dc3545;
}

.error-summary .summary-item.today {
    background: #f0f7ff;
    border-left-color: #0d6efd;
}

.error-summary .summary-item.today strong {
    color: #0d6efd;
}

.error-summary .summary-item span {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-summary .summary-item strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0.25rem;
}

/* Filters */
.errorlogs-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.filter-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.action-group {
    display: flex;
    gap: 0.5rem;
}

/* Table */
.errorlogs-table-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.errorlogs-table {
    width: 100%;
    border-collapse: collapse;
}

.errorlogs-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.errorlogs-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.errorlogs-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.errorlogs-table tbody tr:hover {
    background-color: #f8f9fa;
}

.errorlogs-table tbody tr:last-child {
    border-bottom: none;
}

.errorlogs-table tbody td {
    padding: 1rem;
    font-size: 0.875rem;
    color: #495057;
}

.error-date {
    font-weight: 600;
    color: #1a1a1a;
}

.method-name {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #495057;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-message {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #dc3545;
    font-weight: 500;
}

.request-path {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #6c757d;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Error Details Modal */
.error-section {
    margin-bottom: 1.5rem;
}

.error-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.code-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #495057;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-value {
    font-size: 0.875rem;
    color: #1a1a1a;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg {
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .errorlogs-container {
        padding: 1rem;
    }

    .errorlogs-header {
        flex-direction: column;
        align-items: stretch;
    }

    .error-summary {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .error-summary .summary-item {
        width: 100%;
        align-items: center;
    }

    .errorlogs-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .filter-group,
    .action-group {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
        font-size: 12px;
        padding: 6px 10px;
    }

    .errorlogs-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .errorlogs-table {
        min-width: 800px;
    }
}