.penal-section { padding: 50px 10% 120px; }

.search-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px; 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto;
    position: relative;
    z-index: 10;
}

#penalSearch {
    flex: 1;
    width: 100%; padding: 18px 30px; border-radius: 50px;
    background: rgba(15, 15, 15, 0.7); border: 1px solid rgba(255, 255, 255, 0.1);
    color: white; font-size: 1rem; outline: none; transition: 0.4s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#penalSearch:focus {
    border-color: var(--red-base); box-shadow: 0 0 25px rgba(220, 38, 38, 0.2);
    background: rgba(20, 20, 20, 0.9);
}

#categoryFilter {
    position: relative;
    flex-shrink: 0;
}

#categoryToggle {
    padding: 18px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 15, 15, 0.7);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 1rem;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

#categoryToggle:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(25, 25, 25, 0.8);
}

#categoryList {
    list-style: none;
    margin: 0;
    padding: 10px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    display: none;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateZ(0);
}

#categoryList li {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 8px;
    transition: 0.3s;
    margin-bottom: 5px;
}

#categoryList li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white !important;
}

@media (max-width: 600px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    #categoryFilter {
        width: 100%;
    }
    
    #categoryToggle {
        width: 100%;
        justify-content: space-between;
    }
    
    #categoryList {
        width: 100%;
    }
}

.penal-table-wrapper {
    overflow: hidden; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 15, 15, 0.85); backdrop-filter: blur(8px);
    transform: translateZ(0); /* Hardware Acceleration */
}

.penal-table { width: 100%; border-collapse: collapse; text-align: left; }
.penal-table thead tr { background: rgba(220, 38, 38, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.penal-table th { padding: 22px 25px; color: white; font-weight: 800; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1.5px; }
.penal-table td { padding: 20px 25px; color: var(--text-muted); font-size: 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.02); transition: 0.3s; }

.penal-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.penal-table tbody tr:hover td { color: white; }

.article-id { color: var(--red-light); font-weight: 900; }
.price-text { color: #10b981; font-weight: 700; }
.time-text { color: #f59e0b; font-weight: 700; }

.badge { padding: 6px 12px; border-radius: 8px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.badge-traffic { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-heavy { background: rgba(239, 68, 68, 0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-public { background: rgba(139, 92, 246, 0.1); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.2); }

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--red-light);
}

.pagination-btn.active {
    background: var(--red-base);
    color: white;
    border-color: var(--red-base);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
