.fetcher-container {
    max-width: 1100px;
    padding: 2rem;
    background: #f5f7fa;
    border-radius: 12px;
}

.fetcher-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.fetcher-title {
    font-size: 2.25rem;
    color: #1a3c5e;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.fetcher-subtitle {
    font-size: 1.125rem;
    color: #5a6a85;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

.fetcher-form {
    margin-bottom: 3rem;
}

.form-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid #e1e7ef;
}

.section-title {
    margin: 0 0 1.25rem;
    color: #1a3c5e;
    font-size: 1.375rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e7ef;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #2d3748;
    font-size: 1rem;
}

.form-select, .form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff;
    color: #2d3748;
    transition: all 0.3s ease;
}

.form-select:focus, .form-input:focus {
    outline: 0;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-divider {
    position: relative;
    text-align: center;
    margin: 2.5rem 0;
}

.divider-text {
    display: inline-block;
    padding: 0 1.5rem;
    background: #f5f7fa;
    position: relative;
    z-index: 1;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #d1d9e6;
    z-index: 0;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background: #3b82f6;
    color: #ffffff;
    border: 0;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
    gap: 0.75rem;
}

.search-button:hover {
    background: #2563eb;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.fetcher-icon {
    flex-shrink: 0;
}

.fetcher-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    border-radius: 8px;
}

.alert-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

.alert-message {
    font-weight: 500;
}

.error-message {
    color: #ef4444;
}

.search-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.75rem;
    font-style: italic;
}

.cf-alert {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem;
}

.cf-results {
    margin-top: 3.5rem;
}

.cf-college-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e1e7ef;
}

.cf-college-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3c5e;
    margin: 0 0 0.75rem;
}

.cf-college-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.cf-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #2d3748;
}

.cf-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid #e1e7ef;
    transition: all 0.3s ease;
}

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

.cf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #eff6ff;
    border-bottom: 1px solid #e1e7ef;
}

.cf-group-name {
    margin: 0;
    color: #1a3c5e;
    font-size: 1.375rem;
    font-weight: 600;
}

.cf-badge {
    background: #3b82f6;
    color: #ffffff;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.cf-card-body {
    padding: 2rem;
}

.cf-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.cf-info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cf-info-value {
    font-size: 1.125rem;
    color: #2d3748;
    font-weight: 500;
}

.cf-stats {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.cf-stat {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e1e7ef;
}

.cf-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3c5e;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.cf-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.table-results {
    margin-top: 2.5rem;
}

.results-title {
    font-size: 1.75rem;
    color: #1a3c5e;
    margin-bottom: 2rem;
}

.results-count {
    font-size: 1.125rem;
    color: #5a6a85;
    font-weight: 400;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.data-table th {
    background: #eff6ff;
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: #1a3c5e;
    border: 1px solid #d1d9e6;
}

.data-table td {
    padding: 1rem 1.25rem;
    border: 1px solid #d1d9e6;
}

.data-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.data-table tr:hover {
    background-color: #e0f2fe;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .prev, .pagination .next {
    background: #eff6ff;
    color: #1a3c5e;
    border: 1px solid #bfdbfe;
}

.pagination .prev:hover, .pagination .next:hover {
    background: #dbeafe;
}

.pagination .prev[disabled], .pagination .next[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.current-page {
    padding: 0.75rem 1.25rem;
    color: #2d3748;
    font-weight: 600;
}

.fetcher-footer {
    margin-top: 3.5rem;
    text-align: center;
    color: #5a6a85;
    font-size: 0.875rem;
    border-top: 1px solid #e1e7ef;
    padding-top: 2rem;
}

.update-date {
    color: #6b7280;
    font-size: 0.8125rem;
    margin-top: 0.75rem;
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 0.8s ease-in-out infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Styles for college search form */
.college-search-container {
    max-width: 950px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.college-results-header {
    margin-bottom: 25px;
    text-align: center;
}

.college-results-header h3 {
    color: #1a3c5e;
    font-size: 1.5rem;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.college-results-header p {
    color: #5a6a85;
    font-size: 1rem;
    margin: 0;
}

.college-search-container .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.college-search-container .form-group {
    flex: 1;
    min-width: 280px;
}

.college-search-container .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
}

.college-search-container .form-group input, 
.college-search-container .form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.3s;
}

.college-search-container .form-group input:focus, 
.college-search-container .form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.college-search-container .form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.college-search-container .search-button, 
.college-search-container .reset-button {
    padding: 14px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.college-search-container .search-button {
    background: #3b82f6;
    color: #ffffff;
}

.college-search-container .search-button:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

.college-search-container .reset-button {
    background: #e5e7eb;
    color: #2d3748;
}

.college-search-container .reset-button:hover {
    background: #d1d5db;
    transform: translateY(-3px);
}

.college-results {
    margin-top: 50px;
    overflow-x: auto;
}

.college-results-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
}

.college-results-table th {
    background: #3b82f6;
    color: #ffffff;
    text-align: left;
    padding: 18px;
    font-weight: 600;
}

.college-results-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e1e7ef;
}

.college-results-table tr:nth-child(even) {
    background: #f8fafc;
}

.college-results-table tr:hover {
    background: #e0f2fe;
}

.no-results {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 10px;
    color: #5a6a85;
    font-size: 1.125rem;
}

.loading {
    text-align: center;
    padding: 25px;
    font-size: 1rem;
    color: #1a3c5e;
}

.error {
    text-align: center;
    padding: 25px;
    font-size: 1rem;
    color: #ef4444;
}

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 25px;
    width: 100%;
}

/* Responsive table styles */
@media (max-width: 768px) {
    .data-table, .college-results-table {
        min-width: 100%;
    }
    
    .data-table thead, .college-results-table thead {
        display: none;
    }
    
    .data-table tr, .college-results-table tr {
        display: block;
        margin-bottom: 1.25rem;
        border: 1px solid #e1e7ef;
        border-radius: 8px;
    }
    
    .data-table td, .college-results-table td {
        display: flex;
        justify-content: space-between;
        padding: 1rem;
        text-align: right;
        border-bottom: 1px solid #e1e7ef;
    }
    
    .data-table td:before, .college-results-table td:before {
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        margin-right: 1.25rem;
        flex: 1;
    }
    
    .data-table td:last-child, .college-results-table td:last-child {
        border-bottom: 0;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    .cf-info-grid {
        grid-template-columns: 1fr;
    }
    
    .cf-stats {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .fetcher-container, .college-search-container {
        padding: 20px;
    }
    
    .fetcher-title {
        font-size: 1.75rem;
    }
    
    .cf-college-name {
        font-size: 1.5rem;
    }
    
    .pagination .page-numbers {
        padding: 8px 14px;
        font-size: 0.875rem;
    }
}