/* Public CSS for India College Finder Pro v2.1.0 - Stabilized Medical/Dental Platform */

.icfp-widget-container {
    max-width: 100%;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #000000 !important;
    padding: 20px;
    background: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.icfp-widget-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #000000 !important;
    font-weight: 700;
}

/* Filters */
.icfp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #ffffff !important;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: flex-end;
    border: 1px solid #cccccc !important;
}

.icfp-filter-group {
    flex: 1;
    min-width: 150px;
}

.icfp-search-group {
    flex: 2;
    min-width: 200px;
}

.icfp-filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #000000 !important;
    font-size: 0.85em;
    text-transform: uppercase;
}

.icfp-filter-select, .icfp-filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cccccc !important;
    border-radius: 4px;
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 0.95em;
    transition: all 0.2s;
}

.icfp-filter-select:focus, .icfp-filter-input:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    outline: none;
}

.icfp-search-button {
    padding: 0 20px;
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95em;
    transition: background-color 0.2s;
    height: 42px;
}

.icfp-search-button:hover {
    background-color: #333333 !important;
}

/* View Controls */
.icfp-view-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5 !important;
    border-radius: 4px;
    flex-wrap: wrap;
}

.icfp-view-controls label {
    font-weight: 700;
    color: #000000 !important;
}

.icfp-view-toggle {
    padding: 8px 16px;
    border: 2px solid #cccccc !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.icfp-view-toggle.active {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.icfp-view-toggle:hover {
    border-color: #000000 !important;
}

.icfp-per-page {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.icfp-per-page label {
    font-weight: 700;
    color: #000000 !important;
    font-size: 0.9em;
}

.icfp-per-page-select {
    padding: 6px 10px;
    border: 1px solid #cccccc !important;
    border-radius: 4px;
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 0.9em;
}

/* Grid View */
.icfp-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.icfp-college-card {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.icfp-college-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.icfp-card-header {
    margin-bottom: 15px;
    border-bottom: 2px solid #000000 !important;
    padding-bottom: 10px;
}

.icfp-college-name {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #000000 !important;
    font-weight: 700;
}

.icfp-college-short {
    margin: 0;
    font-size: 0.85em;
    color: #666666 !important;
    font-style: italic;
}

.icfp-card-body {
    margin-bottom: 15px;
}

.icfp-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee !important;
    font-size: 0.9em;
}

.icfp-info-row:last-child {
    border-bottom: none;
}

.icfp-label {
    font-weight: 700;
    color: #000000 !important;
    min-width: 80px;
}

.icfp-value {
    color: #000000 !important;
    text-align: right;
}

.icfp-card-fees {
    background: #f9f9f9 !important;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #000000 !important;
}

.icfp-fee-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9em;
}

.icfp-fee-label {
    font-weight: 700;
    color: #000000 !important;
}

.icfp-fee-value {
    color: #000000 !important;
    font-weight: 600;
}

.icfp-card-notes {
    font-size: 0.85em;
    color: #666666 !important;
    padding: 10px;
    background: #f0f0f0 !important;
    border-radius: 4px;
}

.icfp-card-notes p {
    margin: 0;
}

/* List View */
.icfp-list-view {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
}

.icfp-listing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    background: #ffffff !important;
}

.icfp-listing-table th,
.icfp-listing-table td {
    padding: 12px 10px !important;
    text-align: left !important;
    border: 1px solid #cccccc !important;
    color: #000000 !important;
    background-color: #ffffff !important;
}

.icfp-listing-table th {
    background-color: #000000 !important;
    color: #ffffff !important;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
}

.icfp-listing-table tbody tr:hover {
    background-color: #f5f5f5 !important;
}

.icfp-listing-table tbody tr:nth-child(even) {
    background-color: #fafafa !important;
}

/* Pagination */
.icfp-pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.icfp-pagination-container span, .icfp-pagination-container a {
    padding: 8px 12px !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px;
    color: #000000 !important;
    text-decoration: none !important;
    font-size: 0.9em !important;
    min-width: 35px;
    text-align: center;
    font-weight: 600 !important;
    background-color: #ffffff !important;
    transition: all 0.2s;
}

.icfp-pagination-container span.current {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.icfp-pagination-container a:hover {
    background-color: #f0f0f0 !important;
    border-color: #000000 !important;
}

/* No Results */
.icfp-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666666 !important;
    font-size: 1.1em;
}

/* Skeleton Loading */
.icfp-skeleton-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.icfp-skeleton-row {
    height: 300px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .icfp-filters {
        flex-direction: column;
    }

    .icfp-filter-group, .icfp-search-group {
        min-width: 100%;
    }

    .icfp-view-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .icfp-per-page {
        margin-left: 0;
    }

    .icfp-grid-view {
        grid-template-columns: 1fr;
    }

    .icfp-listing-table {
        font-size: 0.8em;
    }

    .icfp-listing-table th, .icfp-listing-table td {
        padding: 8px 5px !important;
    }
}

/* Force Light Theme Colors Regardless of Browser Preference */
.icfp-widget-container,
.icfp-filters,
.icfp-filter-select,
.icfp-filter-input,
.icfp-college-card,
.icfp-listing-table,
.icfp-pagination-container span,
.icfp-pagination-container a,
.icfp-listing-table td {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #cccccc !important;
}

.icfp-listing-table th {
    background-color: #000000 !important;
    color: #ffffff !important;
}
