/* Стилі для розділу налаштувань акаунту */

/* CSS змінні для налаштувань акаунту */
:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --primary-rgb: 52, 152, 219;
    --accent-color: #e67e22;
    --accent-hover: #d35400;
    --bg-primary: #1e2a47;
    --bg-secondary: #2c3e50;
    --bg-tertiary: #34495e;
    --bg-quaternary: #404040;
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --text-light-secondary: #95a5a6;
    --border-color: #34495e;
}

body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-quaternary: #dee2e6;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-light-secondary: #6c757d;
    --border-color: #dee2e6;
}

/* Основний контейнер налаштувань */
.account-settings-container,
.profile-container {
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Заголовок розділу */
.account-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.account-settings-header h2 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 0;
}

/* Вкладки налаштувань */
.settings-tabs {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.settings-tab {
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: #bdc3c7;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.settings-tab:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.settings-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

/* Вміст вкладок */
.settings-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-tab-content.active {
    display: block;
}

/* Форми налаштувань */
.settings-form-group,
.form-group {
    margin-bottom: 20px;
}

.settings-form-group label,
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group label .required {
    color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.settings-form-control,
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.settings-form-control:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25);
    outline: none;
}

/* Поля вводу з іконками */
.form-input-with-icon {
    position: relative;
}

.form-input-with-icon .settings-form-control {
    padding-right: 40px;
}

.form-input-with-icon .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.form-input-with-icon .input-icon:hover {
    color: var(--primary-color);
}

/* Контейнер для поля пароля */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 45px;
}

.password-input-container .toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s;
}

.password-input-container .toggle-password:hover {
    color: var(--primary-color);
}

/* Секція зміни паролю */
.password-section {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-section h3::before {
    content: '🔐';
    font-size: 18px;
}

.password-requirements {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--bg-tertiary);
    border-radius: 5px;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary-color);
}

.password-requirements h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-primary);
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.password-requirements li i {
    margin-right: 8px;
    color: #e74c3c;
    width: 16px;
}

.password-requirements li i.fa-check-circle {
    color: #2ecc71;
}

/* Стилі для полів паролю */
.password-form-group {
    margin-bottom: 20px;
    position: relative;
}

.password-form-group .password-input-container {
    position: relative;
}

.password-form-group .password-input-container input {
    padding-right: 45px;
}

.password-form-group .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s;
}

.password-form-group .toggle-password:hover {
    color: var(--primary-color);
}

/* Контейнер для кнопки зміни паролю */
.password-actions {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-start;
}

.requirement-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.requirement-item i {
    margin-right: 8px;
    color: #e74c3c;
}

.requirement-item i.fa-check-circle {
    color: #2ecc71;
}

/* Індикатор сили паролю */
.password-strength {
    margin-top: 10px;
}

.strength-text {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.strength-meter {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.strength-meter-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-meter-fill[data-strength="0"] {
    width: 0%;
    background: transparent;
}

.strength-meter-fill[data-strength="1"] {
    width: 20%;
    background: #e74c3c;
}

.strength-meter-fill[data-strength="2"] {
    width: 40%;
    background: #e67e22;
}

.strength-meter-fill[data-strength="3"] {
    width: 60%;
    background: #f39c12;
}

.strength-meter-fill[data-strength="4"] {
    width: 80%;
    background: #27ae60;
}

.strength-meter-fill[data-strength="5"] {
    width: 100%;
    background: #2ecc71;
}

/* Checkbox контроли */
.checkbox-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.checkbox-container label {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 4px;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #3498db;
    border-color: #3498db;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-container.checked {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 8px;
    border-radius: 6px;
}

/* Кнопки дій */
.settings-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.save-privacy-btn,
.save-preferences-btn,
.btn-primary,
.btn-change-password,
#change-password-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.save-privacy-btn:hover,
.save-preferences-btn:hover,
.btn-primary:hover,
.btn-change-password:hover,
#change-password-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

@media (hover: hover) and (pointer: fine) {
    .save-privacy-btn:hover,
    .save-preferences-btn:hover,
    .btn-primary:hover,
    .btn-change-password:hover,
    #change-password-btn:hover {
        transform: translateY(-2px);
    }
}

/* Спеціальні стилі для кнопки зміни паролю */
.btn-change-password,
#change-password-btn {
    background: linear-gradient(135deg, #e67e22, #d35400);
    position: relative;
    overflow: hidden;
}

.btn-change-password:hover,
#change-password-btn:hover {
    background: linear-gradient(135deg, #d35400, #bf360c);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.btn-change-password:active,
#change-password-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.3);
}

/* Додаємо іконку до кнопки зміни паролю */
.btn-change-password::before,
#change-password-btn::before {
    content: '🔒';
    margin-right: 6px;
    font-size: 14px;
}

.btn-change-password:hover::before,
#change-password-btn:hover::before {
    content: '🔓';
}

.btn-secondary,
#cancel-privacy-changes,
#cancel-preferences-changes {
    background: transparent;
    color: #bdc3c7;
    border: 2px solid #95a5a6;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 2;
}

.btn-secondary:hover,
#cancel-privacy-changes:hover,
#cancel-preferences-changes:hover {
    background: #95a5a6;
    color: #2c3e50;
}

@media (hover: hover) and (pointer: fine) {
    .btn-secondary:hover,
    #cancel-privacy-changes:hover,
    #cancel-preferences-changes:hover {
        transform: translateY(-2px);
    }
}

/* Покращення селектів */
.form-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group select:focus {
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group select option {
    background: #2c3e50;
    color: white;
    padding: 10px;
}

/* Повідомлення про успішну дію */
.success-alert {
    position: fixed;
    top: calc(var(--header-height, 68px) + 12px);
    right: 30px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
    z-index: 30000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: none;
    animation: none;
    max-width: 350px;
}

.success-alert.error-alert {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.success-alert.fade-out {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    to {
        transform: translateX(400px);
    }
}

.success-alert i {
    font-size: 16px;
}

/* Повідомлення про помилку */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message i {
    font-size: 14px;
}

/* Анімації */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Адаптивність для планшетів і мобільних */
@media (max-width: 768px) {
    .settings-tabs {
        flex-direction: column;
    }
    
    .settings-tab {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-right: none;
    }
    
    .account-settings-header h2 {
        font-size: 1.4rem;
    }
    
    .settings-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .save-privacy-btn,
    .save-preferences-btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .success-alert {
        top: calc(
            var(--jg-dashboard-toast-top,
                calc(var(--jg-employer-header-h, var(--header-height, 44px)) + env(safe-area-inset-top, 0px) + 12px)
            )
        ) !important;
        right: 15px;
        left: 15px;
        max-width: none;
        z-index: 30000 !important;
    }
}

@media (max-width: 576px) {
    .settings-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .account-settings-header h2 {
        font-size: 1.2rem;
    }
    
    .account-settings-container {
        padding: 15px;
    }
}

/* Покращення чекбоксів */
.checkbox-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 4px;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: #3498db;
    border-color: #3498db;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-container.checked {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 8px;
    border-radius: 6px;
}

/* Покращення контенту вкладок */
.settings-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Покращення індикатора сили паролю */
.strength-meter {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.strength-meter-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-meter-fill[data-strength="0"] {
    width: 0%;
    background: transparent;
}

.strength-meter-fill[data-strength="1"] {
    width: 20%;
    background: #e74c3c;
}

.strength-meter-fill[data-strength="2"] {
    width: 40%;
    background: #e67e22;
}

.strength-meter-fill[data-strength="3"] {
    width: 60%;
    background: #f39c12;
}

.strength-meter-fill[data-strength="4"] {
    width: 80%;
    background: #27ae60;
}

.strength-meter-fill[data-strength="5"] {
    width: 100%;
    background: #2ecc71;
}

.strength-text {
    font-size: 12px;
    color: #bdc3c7;
    margin-top: 5px;
}

/* Вимоги до паролю */
.password-requirements {
    margin-top: 15px;
}

.password-requirements div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    font-size: 12px;
    color: #e74c3c;
    transition: color 0.3s ease;
}

.password-requirements div.valid {
    color: #2ecc71;
}

/* Покращення світлої теми - ВИПРАВЛЕННЯ КОЛЬОРІВ ТЕКСТУ */
body.light-theme #account-settings,
body.light-theme .account-settings-container {
    color: #2c3e50 !important;
}

/* Заголовки */
body.light-theme #account-settings h2,
body.light-theme #account-settings h3,
body.light-theme #account-settings h4,
body.light-theme .account-settings-header h2,
body.light-theme .settings-tab-content h3,
body.light-theme .settings-form-group h3 {
    color: #2c3e50 !important;
}

/* Вкладки */
body.light-theme .settings-tab {
    color: #495057 !important;
}

body.light-theme .settings-tab:hover,
body.light-theme .settings-tab.active {
    color: #3498db !important;
}

body.light-theme .settings-tab.danger {
    color: #e74c3c !important;
}

body.light-theme .settings-tab.danger:hover {
    color: #c0392b !important;
}

/* Мітки та текст */
body.light-theme #account-settings label,
body.light-theme .form-group label,
body.light-theme .settings-form-group label {
    color: #2c3e50 !important;
}

body.light-theme #account-settings p,
body.light-theme #account-settings span,
body.light-theme #account-settings .help-text,
body.light-theme .settings-form-group .help-text {
    color: #495057 !important;
}

body.light-theme .checkbox-container,
body.light-theme .checkbox-container label,
body.light-theme .checkbox-container span {
    color: #2c3e50 !important;
}

body.light-theme .checkbox-container input[type="checkbox"] {
    border-color: #3498db;
    background-color: white;
}

body.light-theme .checkbox-container input[type="checkbox"]:checked {
    background-color: #3498db;
}

/* Поля вводу */
body.light-theme .form-control,
body.light-theme .settings-form-control {
    background: white !important;
    border-color: #ced4da !important;
    color: #2c3e50 !important;
}

body.light-theme .form-control:focus,
body.light-theme .settings-form-control:focus {
    border-color: #3498db !important;
    color: #2c3e50 !important;
}

body.light-theme .form-group select {
    background: white !important;
    border-color: #ced4da !important;
    color: #2c3e50 !important;
}

body.light-theme .form-group select option {
    background: white !important;
    color: #2c3e50 !important;
}

body.light-theme .settings-form-control option {
    background: white !important;
    color: #2c3e50 !important;
}

/* Вимоги до паролю */
body.light-theme .password-requirements {
    background-color: #f5f5f5 !important;
    color: #2c3e50 !important;
}

body.light-theme .password-requirements h4 {
    color: #2c3e50 !important;
}

body.light-theme .password-requirements li,
body.light-theme .password-requirements p {
    color: #495057 !important;
}

body.light-theme .strength-text {
    color: #6c757d !important;
}

/* Кнопки */
body.light-theme .btn-secondary,
body.light-theme #cancel-privacy-changes,
body.light-theme #cancel-preferences-changes {
    color: #495057 !important;
    border-color: #ced4da !important;
}

body.light-theme .btn-secondary:hover,
body.light-theme #cancel-privacy-changes:hover,
body.light-theme #cancel-preferences-changes:hover {
    background: #e9ecef !important;
    color: #2c3e50 !important;
}

/* Попередження та інші елементи */
body.light-theme .warning-box {
    background-color: rgba(231, 76, 60, 0.05) !important;
    color: #2c3e50 !important;
}

body.light-theme .warning-box h3,
body.light-theme .warning-box h4 {
    color: #e74c3c !important;
}

body.light-theme .warning-box p,
body.light-theme .warning-box li {
    color: #495057 !important;
}

body.light-theme .deactivation-warning {
    color: #2c3e50 !important;
}

body.light-theme .deactivation-warning h4 {
    color: #e74c3c !important;
}

body.light-theme .deactivation-warning p {
    color: #495057 !important;
}

body.light-theme .deactivation-confirm label {
    color: #e74c3c !important;
}

body.light-theme .password-input-container .toggle-password {
    color: #6c757d !important;
}

body.light-theme .password-input-container .toggle-password:hover {
    color: #3498db !important;
}

body.light-theme .settings-actions {
    border-top-color: #dee2e6 !important;
}

/* Анімації для елементів форми */
.form-group {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Покращення відображення помилок */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message i {
    font-size: 14px;
}

/* Покращення деактивації акаунту */
.deactivation-warning {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.deactivation-warning h4 {
    color: #e74c3c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.deactivation-warning h4::before {
    content: '⚠️';
    font-size: 18px;
}

.deactivation-warning p {
    color: #bdc3c7;
    margin: 0;
}

.deactivation-confirm {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(231, 76, 60, 0.05);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.deactivation-confirm label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e74c3c;
    font-weight: 600;
    cursor: pointer;
}

#deactivate-account-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

#deactivate-account-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

#deactivate-account-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Стилі для text input та select в деактивації */
.settings-form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.settings-form-control:focus {
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.settings-form-control option {
    background: #2c3e50;
    color: white;
    padding: 10px;
}

/* Стилі для групи форми в налаштуваннях */
.settings-form-group {
    margin-bottom: 20px;
}

.settings-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ecf0f1;
    font-weight: 500;
}

.settings-form-group h3 {
    color: #3498db;
    margin: 30px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.settings-form-group .help-text {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 5px;
    font-style: italic;
}

/* Покращення відображення помилок в формі зміни паролю */
.password-error-container {
    margin-top: 5px;
}

.password-error-container .error-message {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e74c3c;
    font-size: 12px;
    animation: fadeIn 0.3s ease;
}

.password-error-container .error-message::before {
    content: '⚠️';
    font-size: 14px;
}

.password-form-validation {
    margin-top: 10px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    display: none;
}

.password-form-validation.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.password-success-feedback {
    margin-top: 10px;
    padding: 10px;
    background: rgba(46, 204, 113, 0.1);
    border-left: 4px solid #2ecc71;
    border-radius: 4px;
    color: #2ecc71;
    display: none;
}

.password-success-feedback.show {
    display: block;
    animation: slideIn 0.3s ease;
}

/* Responsive дизайн */
@media (max-width: 768px) {
    .settings-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .save-privacy-btn,
    .save-preferences-btn,
    .btn-primary,
    .btn-secondary,
    .btn-change-password,
    #change-password-btn {
        width: 100%;
    }
    
    .success-alert {
        top: calc(
            var(--jg-dashboard-toast-top,
                calc(var(--jg-employer-header-h, var(--header-height, 44px)) + env(safe-area-inset-top, 0px) + 12px)
            )
        ) !important;
        right: 15px;
        left: 15px;
        max-width: none;
        z-index: 30000 !important;
    }
    
    .settings-tabs {
        flex-direction: column;
    }
    
    .settings-tab {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-right: none;
    }
    
    .deactivation-warning {
        padding: 15px;
    }
    
    .settings-form-group h3 {
        font-size: 16px;
    }
    
    .password-section {
        padding: 15px;
    }
    
    .password-actions {
        flex-direction: column;
    }
}

.form-group .save-profile-btn,
.form-group .secondary-btn {
    margin-top: 0;
}

.form-group:has(#save-hr-settings) {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    justify-content: flex-start;
}

#account-settings #save-hr-settings,
#account-settings #reset-hr-settings {
    margin: 0 !important;
    min-height: 44px;
    height: 44px;
    padding: 0 25px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 6px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: none;
}

#account-settings #save-hr-settings span,
#account-settings #reset-hr-settings span,
#account-settings #save-hr-settings i,
#account-settings #reset-hr-settings i {
    font-size: 15px;
    line-height: 1.2;
}

/* Стилі для кнопки деактивації */
.danger-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: center;
}

.danger-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.danger-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.danger-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.danger-btn i {
    font-size: 16px;
}

/* Стилі для світлої теми */
body.light-theme .danger-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

body.light-theme .danger-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

body.light-theme .danger-btn:disabled {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    color: #ecf0f1;
}

/* Стилі для попереджувального блоку */
.warning-box {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.warning-box i {
    color: #e74c3c;
    font-size: 1.2em;
    margin-right: 8px;
}

.warning-box h3 {
    color: #e74c3c;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    font-size: 1.1em;
}

.warning-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.warning-box li {
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.warning-box p {
    margin: 10px 0;
    color: var(--text-secondary);
}

/* Стилі для світлої теми */
body.light-theme .warning-box {
    background: rgba(231, 76, 60, 0.05);
    border-color: rgba(231, 76, 60, 0.2);
}

/* Вкладка «Безпека»: око в полі пароля + Caps Lock */
#security-tab .password-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

#security-tab .password-input-container .settings-form-control {
    padding-right: 48px;
    box-sizing: border-box;
    width: 100%;
}

#security-tab .toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.65);
    padding: 6px 8px;
    font-size: 16px;
    line-height: 1;
    border-radius: 6px;
}

#security-tab .toggle-password:hover {
    color: #3498db;
}

body.light-theme #security-tab .toggle-password {
    color: #6c757d;
}

.jg-caps-hint.unified-caps-hint,
#security-tab .jg-caps-hint {
    margin-top: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #f39c12;
    line-height: 1.35;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.35);
}

.jg-caps-hint[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .jg-caps-hint.unified-caps-hint,
    #security-tab .jg-caps-hint {
        font-size: 0.92rem;
        padding: 10px 12px;
    }
}

body.light-theme .jg-caps-hint.unified-caps-hint,
body.light-theme #security-tab .jg-caps-hint {
    color: #c87f0a;
    background: rgba(243, 156, 18, 0.1);
}