/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar h1 {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 2rem;
}

.navbar h1 a {
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
}

.nav-link {
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: inline-block;
}

.nav-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-link.active {
    background-color: #2c3e50;
    border-color: #2c3e50;
    font-weight: 600;
}

/* Dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    margin-top: 0.5rem;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:first-child {
    border-radius: 4px 4px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 4px 4px;
}

/* Header section */
.header {
    background-color: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Header main layout */
.header-main {
    display: flex;
    gap: 2rem;
}

.header-left {
    flex: 1;
}

/* Quick tips sidebar */
.quick-tips {
    width: 400px;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.quick-tips h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.tip-section {
    margin-bottom: 1.25rem;
}

.tip-section:last-child {
    margin-bottom: 0;
}

.tip-section strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.tip-section ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.tip-section li {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.tip-section li strong {
    display: inline;
    color: #495057;
    margin: 0;
}

/* Active filters display */
.active-filters {
    background-color: #f8f9fa;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.active-filters h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-badge {
    background-color: #e9ecef;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-badge strong {
    color: #495057;
}

.remove-filter {
    color: #6c757d;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 0.25rem;
}

.remove-filter:hover {
    color: #dc3545;
}

/* Statistics */
.stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Header actions */
.header-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.header::after {
    content: "";
    display: table;
    clear: both;
}

/* Filters container */
.filters-container {
    margin-bottom: 1rem;
}

/* NAICS Tabs */
.naics-tabs {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.naics-tabs h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.tab-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.naics-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.naics-tab:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.naics-tab.active {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-name {
    font-weight: 500;
}

/* Agency Filters */
.agency-filters {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-section {
    flex: 1;
    min-width: 250px;
}

.filter-section h4 {
    margin: 0 0 0.75rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.filter-dropdown select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
}

.filter-dropdown select:focus {
    outline: none;
    border-color: #3498db;
}

.filter-dropdown option {
    padding: 0.25rem;
}

.filter-dropdown option:checked {
    background-color: #3498db;
    color: white;
}

.filter-hint {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

/* Search bar */
.search-bar {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-bar form {
    display: flex;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Table */
.contract-table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #34495e;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

th.sortable:hover {
    background-color: #2c3e50;
}

.sort-indicator {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: #7f8c8d;
    opacity: 0.4;
    display: inline-block;
    min-width: 1rem;
}

.sort-indicator.active {
    color: white;
    opacity: 1;
}

.sort-indicator.secondary {
    font-size: 0.7rem;
    opacity: 0.7;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background-color: #f8f9fa;
}

tr.applied {
    background-color: #e8f5e9;
}

tr.applied:hover {
    background-color: #c8e6c9;
}

/* Table cells */
.checkbox-cell {
    width: 60px;
    text-align: center;
}

.company-name a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.company-name a:hover {
    color: #3498db;
    text-decoration: underline;
}

.amount {
    font-weight: 500;
    color: #27ae60;
}

.agency, .sub-agency {
    font-size: 0.9rem;
    max-width: 150px;
}

/* Tags */
.tag {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 0.125rem;
}

.tags-cell {
    max-width: 200px;
    position: relative;
}

.add-tag-btn {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 4px;
    transition: background-color 0.2s;
}

.add-tag-btn:hover {
    background-color: #2980b9;
}

.quick-tag-input {
    display: inline-block;
    margin-left: 4px;
}

.quick-tag-input input {
    width: 100px;
    padding: 2px 6px;
    border: 1px solid #3498db;
    border-radius: 12px;
    font-size: 0.8rem;
}

.tag-filter {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag-filter h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.tag-checkbox input {
    margin-right: 0.5rem;
}

.tag-label {
    font-size: 0.95rem;
}

/* Tag management in detail view */
.tags-management {
    margin: 1rem 0;
}

.current-tags {
    margin-bottom: 1rem;
}

.tag-item {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.remove-tag {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.25rem;
    vertical-align: middle;
}

.remove-tag:hover {
    opacity: 0.8;
}

.no-tags {
    color: #666;
    font-style: italic;
}

.add-tag {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.add-tag input {
    flex: 1;
    max-width: 300px;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-future {
    background-color: #3498db;
    color: white;
}

.status-active {
    background-color: #27ae60;
    color: white;
}

/* Contract detail page */
.contract-detail {
    background-color: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.applied-status label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.applied-date {
    margin-left: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.section {
    margin-bottom: 2rem;
}

.section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

/* Forms */
.contact-form {
    margin-top: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group small {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #6c757d;
    display: block;
}

.form-group label input[type="checkbox"] {
    margin-right: 0.5rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* No results */
.no-results {
    text-align: center;
    padding: 3rem;
}

.no-results p {
    margin-bottom: 1rem;
    color: #666;
}

/* Refresh complete page */
.refresh-complete {
    background-color: white;
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.refresh-complete h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.refresh-results {
    margin: 2rem 0;
}

.refresh-results p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.refresh-results .note {
    color: #666;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* API Info page */
.api-info {
    background-color: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.api-info h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.api-info code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9rem;
}

.api-info pre {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

.api-info pre code {
    padding: 0;
    background: none;
}

.naics-list {
    margin: 1rem 0;
}

.naics-item {
    display: flex;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.naics-code {
    font-weight: bold;
    font-family: monospace;
    background-color: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 1rem;
    min-width: 80px;
}

.naics-description {
    flex: 1;
}

.note {
    background-color: #e7f3ff;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 4px solid #3498db;
}

.api-params p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* NAICS filter section on refresh form */
.naics-filter-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.naics-filter-section h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.naics-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
}

.naics-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.naics-checkbox:hover {
    background-color: #e9ecef;
}

.naics-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.naics-checkbox span {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.naics-checkbox strong {
    color: #495057;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.page-info {
    color: #666;
    font-size: 0.9rem;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-jump label {
    font-size: 0.9rem;
    color: #666;
}

.page-jump input[type="number"] {
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
}

.page-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.page-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.page-link.active {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
    cursor: default;
}

.page-ellipsis {
    padding: 0 0.5rem;
    color: #666;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    background-color: #333;
    color: white;
    font-size: 0.95rem;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    background-color: #27ae60;
}

.notification-error {
    background-color: #e74c3c;
}

.notification-info {
    background-color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: block;
        margin-top: 1rem;
    }
    
    .header-main {
        flex-direction: column;
    }
    
    .quick-tips {
        width: 100%;
        order: -1; /* Show tips first on mobile */
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    .description {
        display: none;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.notes-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.remove-tag {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    margin-left: 5px;
}

.remove-tag:hover {
    color: #e74c3c;
}

/* Loading and Status Messages */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Content Sections */
.content-section {
    margin-top: 20px;
}

.refresh-container,
.info-container {
    max-width: 800px;
    margin: 0 auto;
}

.info-container h3 {
    color: #2c3e50;
    margin-top: 30px;
}

.info-container ul {
    list-style-type: disc;
    margin-left: 20px;
}

.info-text {
    color: #666;
    font-style: italic;
    margin: 10px 0;
    text-align: center;
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
}

/* Contracts Table */
.contracts-table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.contracts-table thead {
    background-color: #495057;
    color: white;
}

.contracts-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}

.contracts-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

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

.contracts-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.active {
    background-color: #28a745;
    color: white;
}

.status-badge.expired {
    background-color: #6c757d;
    color: white;
}

/* Applied Checkbox */
.applied-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Company Name */
.company-name {
    min-width: 250px;
}

.company-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.company-link:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Button styles for table */
.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.btn-icon {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    margin-left: 0.5rem;
}

.btn-icon:hover {
    color: #2980b9;
}


/* Pagination Updates */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-goto {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goto-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.current-page {
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

/* Header layout */
header {
    padding: 1rem 0 2rem 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
}

.header-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.stat-item strong {
    color: white;
    font-weight: 600;
    margin-left: 0.25rem;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.nav-btn:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

.nav-btn.active {
    background-color: rgba(255,255,255,0.3);
    border-color: white;
    font-weight: 600;
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: #f0f0f0;
    color: #333;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #e0e0e0;
    border-color: #3498db;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* FAQ Styles */
.faq-section {
    background-color: white;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.faq-content {
    color: #555;
    line-height: 1.6;
}

.faq-content h4 {
    color: #34495e;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.faq-content ul {
    margin-left: 1.5rem;
}

.faq-content li {
    margin-bottom: 0.5rem;
}