/* Resource Filters Styling */
#resource-filters-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter Form Styling */
#resource-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.filter-group button {
    padding: 10px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-group button:hover {
    background: #c82333;
}

/* Loading State */
#resource-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

#resource-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table Styling */
.resource-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.resource-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

.resource-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.resource-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.resource-table tbody tr {
    transition: background-color 0.2s ease;
}

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

.resource-table tbody tr:hover {
    background: #e3f2fd;
}

.resource-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.resource-table .org-name {
    font-weight: 600;
    color: #333;
    max-width: 200px;
}

.resource-table a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.resource-table a:hover {
    color: #005a8b;
    text-decoration: underline;
}

.no-contact {
    color: #868e96;
    font-style: italic;
}

/* Results Count */
.results-count {
    text-align: right;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px 0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-results p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.no-results p:last-child {
    color: #666;
    margin-bottom: 0;
}

/* Error Styling */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
    }
    
    .resource-table {
        font-size: 12px;
    }
    
    .resource-table th,
    .resource-table td {
        padding: 8px 6px;
    }
    
    .resource-table .org-name {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    #resource-filters {
        padding: 15px;
    }
    
    .resource-table-container {
        margin: 0 -10px;
        border-radius: 0;
    }
    
    .resource-table {
        font-size: 11px;
    }
    
    .resource-table th,
    .resource-table td {
        padding: 6px 4px;
    }
}
