:root {
    --bg-main: #F4F4F5;
    --card-bg: #FFFFFF;
    --text-dark: #282828;
    --text-black: #000000;
    --text-muted: rgba(0, 0, 0, 0.6);
    --border-color: #F4F4F5;

    --accent-active: #CFE741;
    --accent-expired: #EC726B;
    --accent-other: #EEEEEE;
}

[v-cloak] {
    display: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
}

.app-wrapper {
    padding-top: 40px;
    padding-bottom: 64px;
}

.container-custom {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 32px;
    color: var(--text-black);
}

.breadcrumbs-mock {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 24px;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 32px;
}

.filter-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-item.filter-actions {
    flex: 0 0 auto;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #3D3E40;
}

/* Base style for all form-select (selects and buttons) */
.form-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233D3E40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 10px !important;
    padding: 10px 32px 10px 12px !important;
    text-align: left !important;
    border: 1px solid #b5b7c0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #202124 !important;
    height: 44px !important;
    line-height: 22px !important;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
}

/* Specific fix for select elements to ensure vertical alignment */
select.form-select {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 42px !important; /* Approximately matches height minus borders */
}

/* Custom Dropdown for filters */
.custom-dropdown {
    position: relative;
}

.dropdown-btn {
    width: 100%;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: #fff;
    border: 1px solid #d3d4db;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    margin-top: 4px;
}

.dropdown-list-container {
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-list-item {
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.dropdown-list-item:hover, .dropdown-list-item.active {
    background-color: var(--bg-main);
}

/* Results header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.results-count {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Scholarship Card Layout */
.scholarships-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.scholarship-row {
    display: flex;
    gap: 4px;
    align-items: stretch;
}

.scholarship-main {
    flex: 1;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scholarship-finance {
    width: 300px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Main Block Inner */
.sch-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sch-countries {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.flag-icon {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

.sch-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
}

.info-grid {
    display: flex;
    gap: 16px;
}

.info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
}

.info-value {
    font-size: 12px;
    color: var(--text-black);
}

.fs-12 {
    font-size: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    width: max-content;
}

.status-active {
    background-color: var(--accent-active);
    color: var(--text-dark);
}

.status-expired {
    background-color: var(--accent-expired);
    color: #fff;
}

.status-other {
    background-color: var(--accent-other);
    color: var(--text-dark);
}

.divider-line {
    height: 2px;
    background-color: var(--border-color);
    width: 100%;
}

.mt-12 { margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* Finance Block Inner */
.finance-main-amount {
    display: flex;
    gap: 8px;
    align-items: center;
}

.finance-main-amount .val, .finance-main-amount .cur {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black);
}

.finance-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.f-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.f-label {
    width: 110px;
    font-size: 12px;
    color: var(--text-muted);
}

.f-value {
    flex: 1;
    font-size: 12px;
    color: var(--text-black);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-content {
    padding: 24px;
    height: 100%;
    overflow-y: auto;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.loading-fade {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1023px) {
    .scholarship-row {
        flex-direction: column;
    }
    .scholarship-finance {
        width: 100%;
    }
    .filters-bar {
        display: none;
    }
    .info-grid {
        flex-wrap: wrap;
    }
    .info-col {
        min-width: 45%;
    }
}

/* Favorites Feature */
.finance-bottom {
    display: flex;
    gap: 8px;
    align-items: center;
}

.finance-bottom .button {
    flex: 1;
    width: auto !important;
    margin-bottom: 0 !important;
}

.button-favorite {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #CFE741;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    color: #282828;
    padding: 0;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

.button-favorite:hover {
    background: #f4f4f5;
}

.button-favorite.active {
    background: #CFE741;
    color: #000;
}

.floating-favorites {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #CFE741;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
}

.floating-favorites:hover {
    transform: scale(1.05);
}

.floating-favorites .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #CFE741;
}

.floating-favorites.active {
    background: #000;
    color: #CFE741;
}

.floating-favorites.active .badge {
    background: #CFE741;
    color: #000;
    border-color: #000;
}