/* Global Utility Classes extracted from Blade files */

.transition-all {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-shadow:hover {

    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .08) !important;
    border-color: #4f46e5 !important;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.object-fit-contain {
    object-fit: contain;
}

.truncate-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Typography & Colors */
.text-primary-custom {
    color: #4f46e5 !important;
}

.bg-soft-primary {
    background-color: rgba(79, 70, 229, 0.1);
}

.bg-soft-info {
    background-color: rgba(13, 202, 240, 0.1);
}

.bg-soft-success {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-soft-danger {
    background-color: rgba(220, 53, 69, 0.15);
}

.bg-soft-warning {
    background-color: rgba(245, 158, 11, 0.15);
}

.bg-soft-secondary {
    background-color: rgba(100, 116, 139, 0.1);
}

.bg-soft-dark {
    background-color: rgba(30, 41, 59, 0.1);
}

.fs-xs {
    font-size: 0.7rem;
}

.fs-sm-custom {
    font-size: 0.9rem;
}

.fs-xxs {
    font-size: 0.65rem;
}

.fs-tiny {
    font-size: 0.55rem;
}

.fw-600 {
    font-weight: 600;
}

/* Vacancy Index Specific Styles */
.vacancy-page-bg {
    background-color: #f8f9ff;
}

.vacancy-filter-sticky {
    top: 100px;
    z-index: 10;
}

.vacancy-control-height {
    height: 45px;
    font-size: 0.95rem;
}

.vacancy-dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
}

.vacancy-dropdown-search-scroll {
    max-height: 200px;
    overflow-y: auto;
}

.vacancy-btn-pill {
    height: 45px;
    font-weight: 600;
}

.job-horizontal-card {
    min-height: 100px;
}

.job-card-border-left {
    border-left: 3px solid #4f46e5 !important;
}

.job-title-custom {
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.vacancy-badge-custom {
    font-size: 0.6rem;
    border-radius: 3px;
}

.vacancy-logo-section {
    width: 80px;
    min-width: 80px;
}

.vacancy-logo-wrapper {
    width: 60px;
    height: 60px;
    border: 1px solid #e2e8f0;
}

/* Loading Overlay Styles */
.trading-course-loading-view {
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgba(255, 255, 255, 0.6);
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    backdrop-filter: blur(2px);
}

.spinner-grow-custom {
    width: 3rem;
    height: 3rem;
}

/* Helper Classes */
.opacity-15 {
    opacity: 0.15;
}

.no-results-container {
    max-width: 450px;
    font-size: 1.05rem;
}

/* Mobile Glassmorphism Footer */
.glass-footer-container {
    display: none;
}

@media (max-width: 991.98px) {

    /* Bottom Sheet Refinement */
    .bottom-sheet-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 2000000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .bottom-sheet-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .bottom-sheet-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-radius: 24px 24px 0 0;
        z-index: 2001;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        padding-bottom: env(safe-area-inset-bottom, 20px);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    }

    .bottom-sheet-container.active {
        transform: translateY(0);
    }

    .bottom-sheet-handle {
        width: 40px;
        height: 4px;
        background: #e2e8f0;
        border-radius: 2px;
        margin: 12px auto 8px auto;
        flex-shrink: 0;
    }

    .bottom-sheet-content {
        overflow-y: auto;
        padding: 0 20px 20px 20px;
        -webkit-overflow-scrolling: touch;
    }

    /* Keyboard Shift Fix */
    .keyboard-shift {
        transform: translateY(calc(-1 * var(--keyboard-height, 0px))) !important;
    }

    .search-model,
    .account-model {
        position: fixed;
        inset: 0;
        z-index: 3000000;
        display: flex;
        align-items: flex-end;
        pointer-events: none;
        background: transparent !important;
        transition: visibility 0.4s;
    }

    .search-model.active,
    .account-model.active {
        pointer-events: auto;
    }

    .search-model .close,
    .account-model .close {
        display: none;
        /* We use swipe or backdrop or internal close if needed */
    }

    .search-model-content,
    .account-model .form {
        width: calc(100% - 32px) !important;
        max-width: 450px !important;
        margin: 0 auto 100px auto !important;
        background: #fcfcfc;
        border-radius: 24px !important;
        padding: 0 0 10px 0;
        transform: translateY(120%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
        pointer-events: auto;
    }

    .search-model.active .search-model-content,
    .account-model.active .form {
        transform: translateY(0);
    }

    .mobile-footer {
        display: none !important;
        /* Hide old footer */
    }

    .glass-footer-container {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000000;
        width: calc(100% - 32px);
        max-width: 450px;
        display: block;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    }

    .glass-footer-container.hidden-footer {
        transform: translate(-50%, 120%);
        opacity: 0;
    }

    .glass-footer-pill {
        background: rgb(0 0 0 / 80%);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgb(209 209 255);
        border-radius: 12px;
        padding: 12px 16px;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .glass-icon-btn {
        width: 55px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #f0f7ff;
        background: transparent;
        border: none;
        padding: 4px 0;
        position: relative;
        transition: color 0.2s ease;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .glass-icon-btn svg {
        width: 20px;
        height: 20px;
        stroke-width: 2;
        transition: transform 0.3s ease;
    }

    .glass-icon-btn span {
        font-size: 10px;
        font-weight: 600;
        margin-top: 4px;
        color: inherit;
        letter-spacing: -0.1px;
    }

    .glass-icon-btn:active {
        opacity: 0.7;
    }

    .glass-icon-btn.active {
        color: var(--main-color, #543ee8);
    }

    /* Active Indicator Pulse */
    /* Removed Active Indicator Pulse */

    .glass-icon-btn.search-btn {
        background: transparent;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseIndicator {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Fix WhatsApp Icon Visibility on Mobile */
@media (max-width: 991.98px) {
    .whatsapp-float {
        bottom: 110px !important;
        right: 20px !important;

    }
}