.container {
    max-width: 60%;
}

html {
    scroll-padding-top: 56px;
}

body {
    padding-top: 56px;
}

.hero {
    min-height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hero .btn-primary {
    background-color: white;
    color: #667eea;
    border: none;
}

.hero .btn-primary:hover {
    background-color: #f0f0f0;
    color: #667eea;
}

.section {
    padding: 80px 0;
}

.project-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
    object-position: top;
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input[type="date"] {
    padding: 0.45rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
}

.btn-filter {
    padding: 0.45rem 1.25rem;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-filter:hover {
    background: #5a6fd6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    border-top: 3px solid #667eea;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-table {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.panel-table h2 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    padding: 1rem 1.25rem 0;
    margin: 0;
}

.table-wrapper {
    overflow-x: auto;
    padding: 0 0.25rem;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.stats-table th,
.stats-table td {
    padding: 0.65rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.stats-table th {
    font-size: 0.7rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fafbfc;
}

.stats-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.stats-table tbody tr:hover {
    background: #eef1ff;
}

.stats-table .mono {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.8rem;
    color: #555;
}

.stats-table .agent {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
    font-size: 0.8rem;
}

.stats-table .num {
    font-weight: 600;
    color: #1a1a2e;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-new {
    background: #eef1ff;
    color: #667eea;
}

.badge-return {
    background: #e8f5e9;
    color: #2e7d32;
}

.hidden {
    display: none;
}

.placeholder {
    padding: 1rem 1.25rem;
    color: #888;
    font-size: 0.85rem;
}

