/* Enhanced scroll control */
html {
    scroll-behavior: auto !important;
    scroll-padding-top: 0 !important;
}

body {
    scroll-behavior: auto !important;
    overflow-anchor: none !important;
}

/* Main Container */
.slc-wage-container { 
    display: flex; 
    gap: 40px; 
    align-items: flex-start; 
    flex-wrap: wrap; 
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
p.slc-effective-date {
    margin-bottom: unset!important;
    font-size: 13px!important;
}

.slc-main h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8em;
}

/* Sidebar */
.slc-sidebar { 
    width: 300px; 
    background: #f8f9fa;
    padding: 25px; 
    border-radius: 8px; 
    box-sizing: border-box;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 20px;
}

.slc-sidebar h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.slc-main { 
    flex: 1; 
    min-width: 300px; 
}

/* State Cards Grid */
.slc-states-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.slc-state-card {
    padding: 20px 15px;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

/* State Card Content */
.slc-state-card h4 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.slc-state-meta {
    text-align: center;
}

.slc-effective-date {
    margin: 0;
    font-size: 0.75em;
    color: #666;
    line-height: 1.3;
    font-weight: 500;
}

.slc-state-note {
    margin: 3px 0 0 0;
    font-size: 0.65em;
    color: #888;
    line-height: 1.2;
    font-style: italic;
}

/* Icons */
span.dashicons.dashicons-location {
    font-size: 33px !important;
    margin-right: 10px;
}

.slc-effective-date .dashicons {
    font-size: 11px;
    width: 11px;
    height: 11px;
    margin-right: 4px;
}

.slc-state-note .dashicons {
    font-size: 10px;
    width: 10px;
    height: 10px;
    margin-right: 3px;
}

/* Search & Filters */
.slc-search-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 25px;
}

.slc-search { 
    width: 100%; 
    padding: 12px 15px; 
    box-sizing: border-box; 
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-family: inherit;
}

.slc-period-filters {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.slc-period-filters h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9em;
}

.slc-filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    background: white;
    font-size: 0.9em;
    transition: border-color 0.3s ease;
    color: #374151;
}

/* Buttons */
.slc-filter-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.slc-filter-btn:not(.reset) {
    background: #007cba;
    color: white;
}

.slc-filter-btn.reset {
    background: #6c757d;
    color: white;
}

.slc-button {
    display: block;
    text-align: center;
    background: #007cba;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

/* Table Controls */
.slc-table-controls {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid #e2e8f0;
}

.slc-search-box {
    position: relative;
    min-width: 280px;
}

.slc-search-box input {
    width: 100%;
    padding: 12px 15px 9px 32px;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.95);
    color: #2c3e50;
    transition: all 0.3s ease;
    border: 2px solid #e1e8ed;
}

.slc-search-box .dashicons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.slc-entries-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Table Styles */
.slc-wage-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    border: 1px solid #e2e8f0;
}

.slc-wage-table th {
    background-color: #cee2ff;
    color: black;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

.slc-wage-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92em;
    color: #475569;
}

.slc-wage-table tr:nth-child(even) {
    background: #f8fafc;
}

.wage-amount {
    font-weight: bold;
    font-size: 1.1em;
    color: #059669;
}

.employment-category {
    font-weight: 600;
    color: #1e293b;
}

/* Table Footer */
.slc-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 0 0 10px 10px;
    margin-top: -1px;
    border: 1px solid #e2e8f0;
    border-top: none;
}

.slc-table-info {
    color: #64748b;
    font-size: 0.9em;
}

.slc-pagination {
    display: flex;
    gap: 5px;
}

.slc-pagination button {
    padding: 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
    background: white;
}

.slc-pagination button.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* State Page Styles */
.slc-state-page-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.slc-state-header {
    grid-column: 1 / -1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.slc-breadcrumb {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.slc-state-header h1 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 2.2em;
}

.slc-period-info {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.period-item {
    background: #e7f3ff;
    padding: 12px 18px;
    border-radius: 6px;
    border: 1px solid #b3d9ff;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Info Sections */
.slc-info-box,
.slc-download-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.slc-download-section {
    text-align: center;
}

.slc-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

/* PDF Section */
.slc-pdf-download {
    padding: 25px;
    border-radius: 10px;
    background: white;
    margin-bottom: 20px;
    text-align: center;
}

.slc-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: #007cba;
    color: white;
}

/* Notification & Alert */
.slc-notification-alert {
    background: #fff3cd;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slc-results-count {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #007cba;
    color: #495057;
    font-weight: 600;
}

.slc-no-data {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 10px;
}

/* Hover States */
.slc-state-card:hover {
    transform: translateY(-3px);
}

.slc-filter-btn:not(.reset):hover {
    background: #005a87;
}

.slc-filter-btn.reset:hover {
    background: #545b62;
}

.slc-button:hover {
    background: #005a87;
}

.slc-download-btn:hover {
    background: #218838;
}

.slc-pdf-btn:hover {
    background: #005a87;
}

.slc-pagination button:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.slc-wage-table tr:hover {
    background: #f0f9ff;
}

/* Focus States */
.slc-search:focus,
.slc-filter-select:focus,
.slc-search-box input:focus,
.slc-entries-filter select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0,124,186,0.1);
    background: #ffffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .slc-states-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .slc-states-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .slc-state-card {
        height: 110px;
        padding: 18px 12px;
    }
}

@media (max-width: 768px) {
    .slc-wage-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    .slc-sidebar {
        width: 100%;
        position: static;
    }
    .slc-state-page-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    .slc-state-sidebar {
        position: static;
    }
    .slc-table-controls {
        flex-direction: column;
        align-items: stretch;
    }
     .slc-table-footer{
        display:block!important;
    }
    .slc-period-info {
        flex-direction: column;
        gap: 10px;
    }
    .slc-states-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .slc-states-grid {
        grid-template-columns: 1fr;
    }
    .slc-state-card {
        height: 100px;
        padding: 15px 10px;
    }
    .slc-state-card h4 {
        font-size: 1.1em;
    }
    .slc-search-box {
        min-width: 100%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center !important;
}

a.category-btn,
a.slc-pdf-btn {
    color: white;
}