body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
}

.table {
    font-size: 0.9rem;
}

.table thead th {
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

.table tbody td {
    vertical-align: middle;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
}

.score-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 0.375rem;
    min-width: 50px;
    text-align: center;
}

.score-excellent {
    background-color: #198754;
    color: white;
}

.score-good {
    background-color: #20c997;
    color: white;
}

.score-average {
    background-color: #ffc107;
    color: #000;
}

.score-poor {
    background-color: #fd7e14;
    color: white;
}

.score-bad {
    background-color: #dc3545;
    color: white;
}

.score-none {
    background-color: #6c757d;
    color: white;
}

.duration-text {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #495057;
}

.alert-badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 0.25rem;
    min-width: 35px;
    text-align: center;
}

a.alert-badge {
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

a.alert-badge:hover {
    opacity: 0.85;
    transform: scale(1.1);
}

.alert-info {
    background-color: #198754;
    color: white;
}

.alert-warning {
    background-color: #dc3545;
    color: white;
}

.alert-critical {
    background-color: #fd7e14;
    color: white;
}

.alert-severe {
    background-color: #0d6efd;
    color: white;
}

.border-start {
    border-left: 2px solid #dee2e6 !important;
}

.agent-name {
    font-weight: 600;
    color: #0d6efd;
}

.agent-name a {
    transition: all 0.2s ease;
}

.agent-name a:hover {
    text-decoration: underline !important;
    color: #0a58ca !important;
}

.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}

th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sort-icon {
    font-size: 0.75em;
    opacity: 0.4;
    margin-left: 3px;
    vertical-align: middle;
}

.sort-icon.sort-active {
    opacity: 1;
}

@media (max-width: 768px) {
    .table {
        font-size: 0.75rem;
    }
    
    .score-badge,
    .alert-badge {
        font-size: 0.7em;
        padding: 0.2em 0.4em;
    }
}
