.nav-link.active {
    font-weight: bold;
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
}

.language-switch a {
    color: inherit;
    text-decoration: none;
}

.language-switch a:visited {
    color: inherit;
}

.edit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ced4da; /* светло-серый бордер */
    border-radius: 50%;
    background-color: transparent; /* фон прозрачный */
    color: #495057; /* тёмно-серый */
    text-decoration: none;
    font-size: 1rem;
    transition: border-color 0.2s, color 0.2s;
}

button.remove-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ced4da; /* светло-серый бордер */
    border-radius: 50%;
    background-color: transparent; /* фон прозрачный */
    color: #495057; /* тёмно-серый */
    text-decoration: none;
    font-size: 1rem;
    transition: border-color 0.2s, color 0.2s;
}

.edit-icon:hover {
    border-color: #868e96; /* немного темнее при наведении */
    color: #212529;
}

@media (max-width: 768px) and (min-width: 577px) {
    .brand-title {
        display: none !important;
    }
}
@media (max-width: 300px) {
    .brand-title {
        display: none !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .job-word {
        display: none;
    }
}

.form-section {
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.fade-out {
    opacity: 0;
    transform: scaleY(0);
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: all 500ms ease;
}

/* Вот магия — меняем родителя при ховере на кнопке */
.experience-form:has(.remove-experience:hover) {
    border-color: #dc3545 !important;
}
.project-form:has(.remove-project:hover) {
    border-color: #dc3545 !important;
}

div.project-type-army {
    background-color: #6b8e23;
    color: white;
}

.project-type-nonprofit {
    background-color: #a2d5c6 !important;
    color: #333 !important;
}

div.project-type-commercial {
    background-color: #e0e0e0;
    color: #000;
}

div.project-type-freelance {
    background-color: #fff9c4;
    color: #000;
}

.vis-labelset .vis-label {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-content > .tab-pane {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem; /* Скругление снизу */
    padding: 1rem;
    background-color: #f8f9fa;
}
.nav-tabs {
    margin-bottom: 0;
}

/** Google btn **/
.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
    border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #303030;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #303030;
    opacity: 8%;
}


/**  LinkedIn **/
.linkedin-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0077B5;
    color: white;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-family: sans-serif;
    transition: background 0.2s ease;
}

.linkedin-button:disabled {
    color: rgb(31, 31, 31);
    opacity: 38%;
}

.linkedin-button:hover {
    background-color: #005a8c;
}

.linkedin-button svg {
    flex-shrink: 0;
}

.linkedin-button:disabled svg {
    background-color: #0077B5;
}

.linkedin-button:disabled:hover {
    background-color: #ffffff;
}

i.bi-check-circle {
    color: green;
    font-size: 24px;
}

.help-icon {
    display: inline-block;
    margin-left: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
    padding: 0 5px;
    font-size: 12px;
    cursor: help;
    line-height: 1;
}

body.impersonator {
    border: red 10px solid;
}
