/* Глобальні виправлення кольорів - зміна голубого на сірий */

/* Основні кольори */
:root {
    --primary: #6c757d; /* Сірий замість голубого */
    --primary-hover: #5a6268;
    --primary-light: #adb5bd;
    --primary-dark: #495057;
}

/* Header стилі */
header,
.header,
.dashboard-header {
    background: #6c757d !important;
    background-color: #6c757d !important;
}

/* Footer стилі */
footer,
.footer {
    background: #6c757d !important;
    background-color: #6c757d !important;
}

/* Кнопки та інтерактивні елементи */
.btn-primary,
button[type="submit"],
.submit-btn,
.primary-btn {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-primary:hover,
button[type="submit"]:hover,
.submit-btn:hover,
.primary-btn:hover {
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* Градієнти */
.gradient-bg,
.hero-section {
    background: linear-gradient(30deg, #6c757d, #2ecc71, #6c757d) !important;
}

.dashboard-gradient {
    background: linear-gradient(45deg, #6c757d, #2ecc71, #9b59b6) !important;
}

/* Специфічні елементи з #3498db */
.specialist-card .btn,
.vacancy-card .btn,
.apply-btn,
.contact-btn,
.view-profile-btn,
.save-btn,
.edit-btn {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.specialist-card .btn:hover,
.vacancy-card .btn:hover,
.apply-btn:hover,
.contact-btn:hover,
.view-profile-btn:hover,
.save-btn:hover,
.edit-btn:hover {
    background-color: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* Посилання та навігація */
.nav-link.active,
.sidebar-link.active,
.tab-active {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Прогрес бари та індикатори */
.progress-bar,
.skill-progress,
.completion-bar {
    background-color: #6c757d !important;
}

/* Бейджі та мітки */
.badge-primary,
.status-active,
.featured-badge {
    background-color: #6c757d !important;
}

/* Форми */
.form-control:focus,
.input-focus,
select:focus,
textarea:focus {
    border-color: #6c757d !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25) !important;
}

/* Чекбокси та радіо кнопки */
.custom-checkbox input:checked + label::before,
.custom-radio input:checked + label::before {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Модальні вікна */
.modal-header {
    background-color: #6c757d !important;
}

/* Таблиці */
.table-primary,
.table-header {
    background-color: #6c757d !important;
}

/* Карточки */
.card-header-primary,
.card-primary {
    background-color: #6c757d !important;
}

/* Спеціальні класи для конкретних сторінок */
.jobseeker-dashboard .sidebar-link.active,
.employer-panel .nav-active,
.specialist-profile .section-active {
    background-color: #6c757d !important;
}

/* Анімації та переходи */
.btn-primary,
.primary-btn,
.submit-btn {
    transition: all 0.3s ease !important;
}

/* Адаптивність */
@media (max-width: 768px) {
    .mobile-header,
    .mobile-nav {
        background-color: #6c757d !important;
    }
}

/* Додаткові виправлення для специфічних елементів */
.language-switcher .dropdown-toggle,
.user-menu .dropdown-toggle {
    background-color: transparent !important;
    border-color: #6c757d !important;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #6c757d !important;
    color: white !important;
}

/* ====== ГЛОБАЛЬНА УНІФІКАЦІЯ FOOTER ====== */
/* Компактний footer - такий самий як на index.html */

footer.site-footer {
    position: fixed !important;
    bottom: var(--jg-footer-vv-bottom, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 10px 12px !important;
    min-height: auto !important;
    background: rgba(15, 18, 22, 0.96) !important;
    box-shadow: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000 !important;
    margin: 0 !important;
}

/* Внутрішня композиція футера */
footer.site-footer .footer-bottom {
    padding: 4px 0 !important;
    gap: 6px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

footer.site-footer .footer-main {
    display: flex !important;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
}

/* Текстові елементи: менші відступи та щільніший рядок */
footer.site-footer p,
footer.site-footer a {
    margin: 2px 0 !important;
    line-height: 1.2;
}

/* Копірайт — трохи менший і легший */
footer.site-footer .footer-main p,
footer.site-footer .footer-bottom p {
    font-size: 0.81rem !important;
    opacity: 0.75;
}

footer.site-footer .footer-contacts a {
    font-size: 0.8rem !important;
}

/* Кнопка "Інформація": на мобільному — компактна іконка */
@media (max-width: 768px) {
    footer.site-footer .footer-toggle.mobile-only {
        box-sizing: border-box !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        padding: 0 !important;
        margin-left: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 36px !important;
        border-radius: 50% !important;
        font-size: 1rem !important;
        line-height: 1 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    footer.site-footer .footer-toggle.mobile-only .footer-toggle-icon,
    footer.site-footer .footer-toggle.mobile-only .fa-info-circle {
        width: 18px !important;
        height: 18px !important;
        display: block !important;
        margin: 0 !important;
        pointer-events: none;
        flex-shrink: 0;
    }

    footer.site-footer .footer-toggle.mobile-only .footer-toggle-label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    footer.site-footer .footer-main {
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* Desktop: кнопка «Інформація» прихована (посилання завжди видимі) */
footer.site-footer .footer-links {
    width: 100%;
    margin-top: 6px !important;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 4px !important;
}

footer.site-footer.open .footer-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

footer.site-footer.open .footer-links .footer-contacts {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    font-size: 0 !important;
}

footer.site-footer.open .footer-links .footer-contacts a {
    font-size: 0.8rem !important;
}

/* Світла тема */
body.light-theme footer.site-footer {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme footer.site-footer .footer-links {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme footer.site-footer .footer-toggle.mobile-only {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #1f2937 !important;
}

/* Desktop версія - посилання завжди видимі */
@media (min-width: 769px) {
    footer.site-footer .footer-bottom {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    footer.site-footer .footer-toggle {
        display: none !important;
    }
    
    footer.site-footer .footer-links {
        display: flex !important;
        width: auto !important;
        gap: 20px;
        margin-top: 0 !important;
        margin-left: auto;
        border-top: none !important;
        padding-top: 0 !important;
    }
    
    footer.site-footer .footer-contacts {
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
        gap: 10px !important;
        font-size: inherit !important;
        white-space: nowrap !important;
    }
    
    footer.site-footer .footer-contacts a {
        font-size: 0.8rem !important;
    }
    
    footer.site-footer .footer-main {
        width: auto !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
        /* logo + copyright stay together on the left (not pushed toward Контакти) */
        justify-content: flex-start !important;
        gap: 8px 12px !important;
    }
}

/* Мобільна версія - посилання приховані до кліку */
@media (max-width: 768px) {
    body:not(.jg-footer-mobile-hidden) {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px) + var(--jg-footer-vv-bottom, 0px)) !important;
    }

    footer.site-footer {
        bottom: var(--jg-footer-vv-bottom, 0px) !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: auto;
    }

    footer.site-footer.jg-footer-scroll-hidden {
        transform: translate3d(0, calc(100% + var(--jg-footer-vv-bottom, 0px)), 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none !important;
    }

    footer.site-footer .footer-toggle.mobile-only {
        touch-action: manipulation !important;
        -webkit-touch-callout: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    footer.site-footer .footer-links {
        display: none !important;
    }
    
    footer.site-footer.open .footer-links {
        display: flex !important;
    }
} 