/* Стили для конструктора Sims */

/* ==================== CSS ПЕРЕМЕННЫЕ ТЕМЫ ==================== */

:root {
    /* Светлая тема (по умолчанию) */
    --primary-dark: #2C3E50;
    --primary-light: #3498DB;
    --surface-light: #FFFFFF;
    --surface-dark: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --border-color: #E0E0E0;
    --background: #F5F6FA;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border */
    --border-radius: 8px;
}

/* Темная тема */
body.dark-theme {
    --primary-dark: #ECF0F1;
    --primary-light: #3498DB;
    --surface-light: #2C3E50;
    --surface-dark: #1A252F;
    --text-dark: #ECF0F1;
    --text-light: #BDC3C7;
    --border-color: #34495E;
    --background: #1A252F;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
}

/* Поддержка темной темы для всех элементов */
body.dark-theme * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Модальные окна в темной теме */
body.dark-theme .modal {
    background-color: rgba(0, 0, 0, 0.7);
}

body.dark-theme .modal-content {
    background-color: var(--surface-light);
}

/* Инпуты в темной теме */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    background-color: var(--surface-dark);
    color: var(--text-dark);
    border-color: var(--border-color);
}

body.dark-theme input::placeholder {
    color: var(--text-light);
}

/* Предотвращение горизонтальной прокрутки на мобильных */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    background-color: var(--background);
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.constructor-section {
    display: none;
    animation: fadeIn 0.3s ease-in;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.constructor-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

/* Инструкции для разделов */
.section-instructions {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(155, 89, 182, 0.1) 100%);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-instructions p {
    margin: 0 0 12px 0;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
}

.section-instructions ul {
    margin: 0;
    padding-left: 8px;
    list-style: none;
}

.section-instructions li {
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.section-instructions li strong {
    color: var(--text-dark);
}

/* Сворачивание инструкций на мобильных */
@media (max-width: 768px) {
    .section-instructions {
        padding: 12px 16px;
        margin: 0 12px 20px 12px;
    }

    .section-instructions li {
        font-size: 13px;
    }
}

/* Навигация между разделами */
.section-nav-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.section-nav-btn:hover {
    background-color: var(--surface-dark);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.section-nav-btn.active {
    background-color: var(--primary-dark);
    color: #FFFFFF;
    border-color: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.3);
}

.controls-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-left: auto;
}

.export-btn,
.import-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--primary-light);
    border: none;
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.export-btn:hover,
.import-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.theme-toggle-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: transparent;
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background-color: var(--primary-light);
    transform: rotate(15deg);
}

/* ==================== ИНТЕРФЕЙС СЛОЖНОСТИ ==================== */

.difficulty-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
}

.difficulty-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--surface-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
}

.difficulty-menu-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: transparent;
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.difficulty-menu-btn:hover {
    background-color: var(--primary-light);
    transform: scale(1.1);
}

.difficulty-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--spacing-xs);
    background: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px;
    min-width: 160px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark-theme .difficulty-menu {
    background: var(--surface-light);
    border-color: var(--border-color);
}

.difficulty-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: transparent;
    border: none;
    border-radius: 4px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.difficulty-btn:hover {
    background-color: var(--surface-dark);
}

.difficulty-btn.active {
    background-color: var(--primary-light);
    color: white;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Радиальный вид с пандой */
.radial-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 800px;
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) 0;
}

.radial-center-area {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Колонка навыков слева */
.radial-skills-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: var(--spacing-sm);
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
}

.radial-skills-column::-webkit-scrollbar {
    width: 8px;
}

.radial-skills-column::-webkit-scrollbar-track {
    background: var(--surface-light);
    border-radius: 4px;
}

.radial-skills-column::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.radial-skills-column::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.radial-skills-column .radial-item {
    position: relative;
    width: 100%;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0;
    padding: var(--spacing-sm);
    padding-left: 0;
}

.panda-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.panda-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Активные статусы в радиальном виде */
.radial-statuses {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 500px;
    z-index: 103;
    padding: var(--spacing-xs);
}

.radial-status-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px var(--spacing-xs);
    background: linear-gradient(135deg, var(--gold) 0%, rgba(255, 193, 7, 0.9) 100%);
    border: 2px solid rgba(255, 193, 7, 0.8);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    animation: statusPulse 2s ease-in-out infinite;
}

.radial-status-icon {
    font-size: 14px;
    line-height: 1;
}

.radial-status-name {
    font-size: 11px;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(0.98);
    }
}

/* Пламбо из Sims */
.plumbob {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    z-index: 101;
    animation: plumbob-float 3s ease-in-out infinite;
    --plumbob-top: #00ff00;
    --plumbob-bottom: #00cc00;
    transition: --plumbob-top 0.5s ease, --plumbob-bottom 0.5s ease;
}

.plumbob::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid var(--plumbob-top, #00ff00);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: border-bottom-color 0.5s ease;
}

.plumbob::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid var(--plumbob-bottom, #00cc00);
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.3));
    transition: border-top-color 0.5s ease;
}

.plumbob-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #e6ffe6 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), inset 0 0 4px rgba(0, 255, 0, 0.3);
    z-index: 1;
}

@keyframes plumbob-float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0px);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Активные таймеры */
.active-timers-container {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.action-timer-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.action-timer-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(155, 89, 182, 0.04) 100%);
    pointer-events: none;
}

.action-timer-item:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.12);
}

.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.timer-action-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.timer-cancel-btn {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.timer-cancel-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
    transform: scale(1.1);
}

.timer-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.timer-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 1s linear;
    border-radius: 5px;
    position: relative;
}

.timer-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: timer-shimmer 2s ease-in-out infinite;
}

@keyframes timer-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.timer-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.08);
    position: relative;
    z-index: 1;
}

/* Контейнер статусов */
.statuses-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--surface-light);
    border-radius: 8px;
    border: 1px solid rgba(44, 62, 80, 0.2);
}

.statuses-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
    justify-content: space-between;
}

.statuses-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.edit-statuses-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.edit-statuses-btn:hover {
    background-color: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.statuses-list {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.status-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--surface-light);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.status-item.active {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.status-icon {
    font-size: 20px;
    line-height: 1;
}

.status-name {
    white-space: nowrap;
}

.radial-needs {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.sims-action-item.has-modifiers {
    border-left: 4px solid var(--gold);
    background: rgba(255, 193, 7, 0.05);
}

/* Редактирование статусов */
.edit-statuses-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-height: 60vh;
    overflow-y: auto;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.edit-status-item {
    background-color: var(--surface-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.delete-status-btn {
    margin-top: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.delete-status-btn:hover {
    background-color: #dc3545;
    color: white;
}

/* История действий */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.history-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

.history-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.action-history {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.history-item {
    background-color: var(--surface-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 4px solid var(--primary-light);
    transition: all 0.3s;
    margin-bottom: var(--spacing-md);
}

.history-item:hover {
    background-color: rgba(44, 62, 80, 0.05);
    border-left-color: var(--primary-dark);
}

.history-item.status-activated {
    border-left-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.history-item.status-activated:hover {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: #218838;
}

.history-item.status-deactivated {
    border-left-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.history-item.status-deactivated:hover {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #c82333;
}

.history-header-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.history-icon {
    font-size: 24px;
    line-height: 1;
}

.history-main {
    flex: 1;
}

.history-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.history-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.history-need {
    font-size: 13px;
    color: var(--primary-dark);
    margin-top: var(--spacing-xs);
}

.history-status-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
    font-style: italic;
}

.history-time {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

.history-statuses {
    font-size: 13px;
    color: var(--text-dark);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: rgba(255, 193, 7, 0.1);
    border-radius: 4px;
}

.history-modified {
    font-size: 12px;
    color: var(--gold);
    margin-top: var(--spacing-xs);
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.history-effects {
    font-size: 14px;
    color: var(--text-dark);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.action-history::-webkit-scrollbar {
    width: 8px;
}

.action-history::-webkit-scrollbar-track {
    background: var(--surface-light);
    border-radius: 4px;
}

.action-history::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.action-history::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.radial-item {
    position: absolute;
    width: 200px;
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.radial-skills-column .radial-item {
    padding-left: 0;
}

.radial-item:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    z-index: 105;
}

.radial-need-item {
    z-index: 104;
    min-width: 200px;
    width: 200px;
}

.radial-skill-item {
    min-width: 180px;
}

.radial-item-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    flex-wrap: wrap;
}

.radial-item-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.radial-bar {
    margin-bottom: var(--spacing-xs);
}

.radial-level {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    background-color: var(--gold);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.radial-requirement {
    font-size: 11px;
    margin-top: var(--spacing-xs);
    padding: var(--spacing-xs);
    background-color: var(--surface-light);
    border-radius: 4px;
    line-height: 1.3;
}

/* Контейнер потребностей */
.needs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.need-item {
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.need-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.need-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.need-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--surface-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(44, 62, 80, 0.1);
}

.need-icon {
    font-size: 28px;
    line-height: 1;
}

.need-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    flex: 1;
}

.need-bar-container {
    position: relative;
    width: 100%;
    height: 32px;
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    border: 2px solid rgba(44, 62, 80, 0.1);
}

.need-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: var(--border-radius);
}

/* Цвета для разных уровней потребностей */
.need-bar.low {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

.need-bar.medium {
    background: linear-gradient(90deg, #ffd700 0%, #ff9800 100%);
}

.need-bar.high {
    background: linear-gradient(90deg, #4caf50 0%, #2e7d32 100%);
}

.need-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.need-value {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Кнопка добавления навыка */
.add-skill-container {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.add-skill-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--primary-dark);
    border: none;
    border-radius: var(--border-radius);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.add-skill-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.add-skill-btn:active,
.add-skill-btn:focus {
    background-color: var(--primary-light);
    outline: none;
}

.add-skill-btn span {
    font-size: 20px;
}

/* Контейнер навыков */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category-group {
    margin-bottom: var(--spacing-xl);
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.category-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.skill-item {
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.skill-actions {
    display: flex;
    gap: var(--spacing-xs);
    margin-left: auto;
}

.skill-edit-btn,
.skill-delete-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: 4px;
    transition: background-color 0.2s;
    opacity: 0.7;
}

.skill-edit-btn:hover,
.skill-delete-btn:hover {
    opacity: 1;
    background-color: rgba(44, 62, 80, 0.1);
}

.skill-show-main-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.skill-show-main-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.skill-show-main-toggle span {
    font-size: 18px;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: var(--spacing-xs);
    border-radius: 4px;
}

.skill-show-main-toggle input[type="checkbox"]:checked+span {
    opacity: 1;
    background-color: rgba(102, 126, 234, 0.2);
}

.skill-show-main-toggle:hover span {
    opacity: 0.8;
    background-color: rgba(44, 62, 80, 0.1);
}

.skill-icon {
    font-size: 48px;
    line-height: 1;
}

.skill-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    flex: 1;
}

.skill-level {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    background-color: var(--gold);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.skill-bar-container {
    position: relative;
    width: 100%;
    height: 40px;
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    border: 2px solid rgba(44, 62, 80, 0.1);
}

.radial-skills-column .skill-bar-container {
    height: 20px;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    transition: width 0.3s ease;
    border-radius: var(--border-radius);
    position: relative;
}

/* Визуализация уровней навыков - маркеры каждые 10% */
.skill-bar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(to right,
            transparent,
            transparent calc(10% - 1px),
            rgba(255, 255, 255, 0.3) calc(10% - 1px),
            rgba(255, 255, 255, 0.3) 10%);
    pointer-events: none;
    border-radius: var(--border-radius);
}

.skill-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.skill-level-label {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

.skill-level-label span {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 18px;
}

.skill-next-requirement {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-light);
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.skill-next-requirement strong {
    color: var(--primary-dark);
}

/* Стили для модальных окон требований */
.requirements-list {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: var(--spacing-sm);
}

.requirement-item {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.requirement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.requirement-level-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.requirement-input {
    width: 100%;
    min-height: 60px;
    padding: var(--spacing-md);
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    resize: vertical;
    transition: border-color 0.3s;
}

.requirement-input:focus {
    outline: none;
    border-color: var(--primary-dark);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal-content {
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-dark);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    padding-right: 40px;
}

.form-field {
    margin-bottom: var(--spacing-sm);
}

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--surface-light);
    transition: border-color 0.3s;
}

.form-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    padding: 0;
    cursor: pointer;
    accent-color: var(--primary-light);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

.save-btn {
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--primary-light);
    border: none;
    border-radius: var(--border-radius);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.save-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.save-btn:active,
.save-btn:focus {
    background-color: var(--primary-dark);
    outline: none;
}

/* Статистика */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.stats-card {
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stats-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--surface-light);
}

.stats-card.full-width {
    grid-column: 1 / -1;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--surface-light);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

.category-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.category-stat-item {
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border-left: 4px solid var(--primary-light);
}

.category-stat-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.category-stat-name {
    font-weight: 600;
    color: var(--primary-dark);
    flex: 1;
}

.category-stat-count {
    font-size: 12px;
    color: var(--text-light);
}

.category-stat-detail {
    font-size: 14px;
    color: var(--text-dark);
}

.toggle-custom-category-btn {
    background-color: var(--surface-light);
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-custom-category-btn:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.form-field select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--surface-light);
    transition: border-color 0.3s;
}

.form-field select:focus {
    outline: none;
    border-color: var(--primary-dark);
}

/* Модальное окно в стиле Sims */
.sims-modal {
    background-color: rgba(0, 0, 0, 0.7);
}

.sims-modal-content {
    background: var(--surface-light);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.sims-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.sims-modal-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.sims-modal-title {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.edit-actions-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--white);
    font-size: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-actions-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sims-actions-search-container {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sims-actions-search {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
}

.sims-actions-search:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Кнопки сортировки */
.sims-actions-sort-buttons {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    justify-content: center;
}

.sort-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--surface-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.sort-btn:hover {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.sort-btn.active {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

.sims-actions-list {
    padding: var(--spacing-lg);
    max-height: 500px;
    overflow-y: auto;
}

.sims-action-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 255, 0.9));
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.sims-action-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.sims-action-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.sims-action-item:hover::before {
    opacity: 1;
}

.sims-action-item:last-child {
    margin-bottom: 0;
}

.sims-action-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.sims-action-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.sims-action-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.sims-action-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sims-action-meta-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    color: var(--primary-dark);
}

.sims-action-value {
    font-size: 20px;
    font-weight: 800;
    color: #27ae60;
    margin-left: 16px;
    background: rgba(39, 174, 96, 0.1);
    padding: 6px 12px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.clickable-need {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.clickable-need:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.sims-actions-list::-webkit-scrollbar {
    width: 8px;
}

.sims-actions-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sims-actions-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.sims-actions-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Редактирование действий */
.edit-actions-list {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: var(--spacing-lg);
}

.edit-action-item {
    background-color: var(--surface-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--primary-light);
}

.edit-action-item:last-child {
    margin-bottom: 0;
}

.delete-action-btn {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: #dc3545;
    border: none;
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: var(--spacing-md);
}

.delete-action-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

.add-action-btn {
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--primary-light);
    border: none;
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: var(--spacing-lg);
}

.add-action-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

.cancel-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: transparent;
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn:hover {
    background-color: var(--surface-dark);
    border-color: var(--primary-dark);
}

.cancel-btn:active,
.cancel-btn:focus {
    background-color: var(--surface-dark);
    outline: none;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .radial-container {
        grid-template-columns: 300px 1fr;
        height: auto;
        min-height: 600px;
        gap: var(--spacing-lg);
    }

    .radial-center-area {
        min-height: 600px;
    }

    .panda-center {
        width: 150px;
        height: 150px;
    }

    .radial-statuses {
        max-width: 300px;
        gap: var(--spacing-xs);
    }

    .radial-status-item {
        font-size: 11px;
        padding: 4px var(--spacing-xs);
    }

    .radial-status-icon {
        font-size: 14px;
    }

    .radial-status-name {
        font-size: 11px;
    }

    .radial-item {
        width: 100%;
        padding: var(--spacing-sm);
    }

    .radial-need-item {
        min-width: 140px;
    }

    .radial-skill-item {
        min-width: auto;
    }
}

/* Планшеты в портретной ориентации и узкие экраны */
@media (max-width: 900px) {
    .container {
        padding-top: 100px !important;
        padding-left: var(--spacing-md) !important;
        padding-right: var(--spacing-md) !important;
    }

    .radial-container {
        grid-template-columns: 1fr !important;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg) var(--spacing-md);
    }

    /* Центральная область с пандой - СВЕРХУ */
    .radial-center-area {
        order: 1;
        min-height: auto;
        width: 100%;
        margin-bottom: var(--spacing-lg);
    }

    /* Навыки ВНИЗУ */
    .radial-skills-column {
        order: 2;
        max-height: none;
        overflow-y: visible;
        padding: 0;
        margin-top: var(--spacing-lg);
        width: 100%;
    }

    .panda-center {
        width: 130px;
        height: 130px;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto var(--spacing-lg);
    }

    .radial-needs {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-sm) !important;
        margin-top: var(--spacing-md) !important;
        padding: 0 !important;
    }

    .radial-needs .radial-item {
        position: relative !important;
        width: 100% !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        padding: var(--spacing-sm) !important;
        margin: 0 !important;
    }

    .radial-need-item {
        position: relative !important;
        min-width: auto !important;
        width: 100% !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }

    .radial-statuses {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: var(--spacing-md) !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: var(--spacing-xs) !important;
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding-top: 100px !important;
        padding-left: var(--spacing-md) !important;
        padding-right: var(--spacing-md) !important;
    }

    .needs-container,
    .skills-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .section-title {
        font-size: 22px;
        padding: 0 var(--spacing-sm);
    }

    .skill-level {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .controls-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--surface-light);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: var(--spacing-sm);
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }

    .section-nav-btn {
        font-size: 13px;
        padding: var(--spacing-xs) var(--spacing-sm);
        flex: 1;
        min-width: 80px;
    }

    .controls-actions {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: var(--spacing-xs);
        gap: var(--spacing-xs);
    }

    .export-btn,
    .import-btn {
        font-size: 12px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .category-skills {
        grid-template-columns: 1fr;
    }

    .skill-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }

    .modal-content {
        padding: var(--spacing-md);
        max-height: 90vh;
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        margin: 20px;
    }

    .sims-modal-content {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        padding: var(--spacing-md);
    }

    .radial-container {
        grid-template-columns: 1fr !important;
        min-height: auto;
        height: auto;
        padding: var(--spacing-md);
        gap: var(--spacing-md);
        display: flex;
        flex-direction: column;
    }

    /* Центральная область с пандой - СВЕРХУ */
    .radial-center-area {
        order: 1;
        min-height: auto;
        padding: var(--spacing-md) 0;
        width: 100%;
        margin-bottom: var(--spacing-lg);
    }

    /* Навыки ВНИЗУ */
    .radial-skills-column {
        order: 2;
        max-height: none;
        overflow-y: visible;
        padding: 0;
        margin-top: var(--spacing-lg);
        width: 100%;
    }

    .panda-center {
        width: 120px;
        height: 120px;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto var(--spacing-lg);
    }

    .radial-statuses {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: var(--spacing-md);
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        justify-content: center;
    }

    .plumbob {
        top: -60px;
        width: 30px;
        height: 30px;
        animation: plumbob-float 3s ease-in-out infinite;
    }

    .plumbob::before {
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 22px solid var(--plumbob-top, #00ff00);
    }

    .plumbob::after {
        top: 22px;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-top: 22px solid var(--plumbob-bottom, #00cc00);
    }

    .plumbob-inner {
        width: 8px;
        height: 8px;
    }

    .panda-image {
        animation: none;
    }

    .radial-needs {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
        padding: 0;
    }

    .radial-needs .radial-item {
        position: relative !important;
        width: 100%;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }

    .radial-item:hover {
        transform: scale(1.02) !important;
    }

    .radial-item-name {
        font-size: 11px;
    }

    .radial-need-item {
        min-width: auto;
        width: 100%;
    }
}

/* Мобильные устройства (планшеты и телефоны) */
@media (max-width: 768px) {

    /* Общие настройки */
    body {
        overflow-x: hidden;
        overscroll-behavior-y: none;
        /* Предотвращает "пружинистость" на iOS */
    }

    .container {
        padding-top: 20px !important;
        /* Убираем верхний отступ от навбара */
        padding-bottom: 80px !important;
        /* Добавляем отступ снизу для навбара */
        padding-left: var(--spacing-sm) !important;
        padding-right: var(--spacing-sm) !important;
        min-height: 100vh;
    }

    /* Панель навигации - СНИЗУ */
    .controls-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 8px 10px;
        flex-direction: row;
        justify-content: space-around;
        /* Равномерное распределение */
        align-items: center;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .section-nav-btn {
        font-size: 11px;
        padding: 6px 4px;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--text-dark);
        box-shadow: none;
        height: auto;
    }

    .section-nav-btn.active {
        background: transparent;
        color: var(--primary-light);
        box-shadow: none;
    }

    .section-nav-btn.active::after {
        content: '';
        display: block;
        width: 4px;
        height: 4px;
        background: var(--primary-dark);
        border-radius: 50%;
        margin-top: 4px;
    }

    /* Действия (экспорт/импорт) - скрываем в нижнем меню или переносим */
    .controls-actions {
        position: absolute;
        top: -50px;
        right: 10px;
        background: rgba(255, 255, 255, 0.9);
        padding: 6px;
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: none;
        /* Пока скроем для простоты, или можно показывать по клику */
    }

    /* РАДИАЛЬНЫЙ ВИД - Вертикальная компоновка */
    .radial-container {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding: 0;
        gap: 20px;
        grid-template-columns: 1fr;
        /* Сброс грида */
    }

    /* 1. Панда сверху */
    .radial-center-area {
        order: 1;
        width: 100%;
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px;
    }

    .panda-center {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 140px;
        height: 140px;
        margin: 40px auto 20px;
        /* Отступ сверху для пламбо */
    }

    .panda-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Пламбо */
    .plumbob {
        top: -45px;
        transform: translateX(-50%);
    }

    /* Статусы под пандой */
    .radial-statuses {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        flex-wrap: wrap;
        padding: 0;
    }

    /* 2. Потребности - Сетка 2 колонки на мобильных */
    .radial-needs {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        order: 2;
        /* Потребности под пандой */
    }

    .radial-need-item,
    .radial-needs .radial-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
        min-width: 0;
    }

    /* 3. Навыки - Снизу */
    .radial-skills-column {
        order: 3;
        width: 100%;
        max-height: none;
        padding: 0;
        overflow: visible;
        margin-top: 20px;
    }

    .radial-skills-column .radial-item {
        width: 100%;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin-bottom: 10px;
    }

    /* Модальные окна - Bottom Sheet стиль */
    .modal-content,
    .sims-modal-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        margin: 0;
        animation: slideUp 0.3s ease-out;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    /* Улучшение тач-зоны для ползунков */
    input[type=range] {
        height: 24px;
        /* Увеличиваем высоту для пальцев */
    }

    input[type=range]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        margin-top: -10px;
        /* Центрирование */
    }
}

/* Маленькие телефоны */
@media (max-width: 380px) {
    .radial-needs {
        grid-template-columns: 1fr;
        /* Одна колонка на очень узких экранах */
    }
}

/* ==================== ГРАФИКИ И ВИЗУАЛИЗАЦИЯ ==================== */

.charts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.chart-item {
    background: var(--surface-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.chart-item h4 {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 600;
}

.chart-item canvas {
    max-height: 300px;
}

/* Адаптивные графики */
@media (min-width: 768px) {
    .charts-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .charts-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== СИСТЕМА УВЕДОМЛЕНИЙ ==================== */

.in-app-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 350px;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    animation: slideInRight 0.3s ease-out;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 15px;
}

.notification-message {
    opacity: 0.9;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Типы уведомлений */
.notification-warning {
    background-color: #FFF3CD;
    border: 2px solid #FFC107;
    color: #856404;
}

.notification-critical {
    background-color: #F8D7DA;
    border: 2px solid #DC3545;
    color: #721C24;
    animation: pulse 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.notification-success {
    background-color: #D4EDDA;
    border: 2px solid #28A745;
    color: #155724;
}

.notification-info {
    background-color: #D1ECF1;
    border: 2px solid #17A2B8;
    color: #0C5460;
}

/* Темная тема для уведомлений */
body.dark-theme .notification-warning {
    background-color: #664D03;
    border-color: #997404;
    color: #FFE69C;
}

body.dark-theme .notification-critical {
    background-color: #842029;
    border-color: #F8969A;
    color: #F8969A;
}

body.dark-theme .notification-success {
    background-color: #0F5132;
    border-color: #51CF66;
    color: #A3E635;
}

body.dark-theme .notification-info {
    background-color: #05313D;
    border-color: #22B8CF;
    color: #9EF0FF;
}

/* Мобильные уведомления */
@media (max-width: 768px) {
    .in-app-notification {
        top: 85px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ==================== РАСШИРЕННАЯ СТАТИСТИКА ==================== */

.period-selector {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.period-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--surface-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
}

.period-btn:hover {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

.period-btn.active {
    background-color: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.4);
}

.period-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.period-stat-item {
    background: var(--surface-dark);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    border-left: 4px solid var(--primary-light);
}

.period-stat-item.positive {
    border-left-color: #27AE60;
}

.period-stat-item.negative {
    border-left-color: #E74C3C;
}

.period-stat-name {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.period-stat-icon {
    font-size: 20px;
}

.period-stat-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    font-size: 13px;
    color: var(--text-light);
}

.period-stat-value {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

.period-stat-value strong {
    color: var(--primary-light);
    font-weight: 700;
}

.period-stat-trend {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(52, 152, 219, 0.1);
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.period-stat-trend.up {
    background: rgba(39, 174, 96, 0.1);
    color: #27AE60;
}

.period-stat-trend.down {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
}

.no-stats-message {
    text-align: center;
    color: var(--text-light);
    padding: var(--spacing-xl);
    font-style: italic;
}

/* ==================== АНИМАЦИЯ ИЗМЕНЕНИЯ ПОТРЕБНОСТЕЙ (ТАМАГОЧИ ЭФФЕКТ) ==================== */

@keyframes needIncreasing {
    0% {
        background-color: rgba(76, 175, 80, 0.3);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes needDecreasing {
    0% {
        background-color: rgba(244, 67, 54, 0.3);
    }

    100% {
        background-color: transparent;
    }
}

/* Применяем анимацию к элементам потребностей */
.need-item.pulse-increase {
    animation: needIncreasing 0.6s ease-out;
}

.need-item.pulse-decrease {
    animation: needDecreasing 0.6s ease-out;
}

.radial-need-item.pulse-increase {
    animation: needIncreasing 0.6s ease-out;
}

.radial-need-item.pulse-decrease {
    animation: needDecreasing 0.6s ease-out;
}

/* Анимация переключения состояния Пламбоба */
@keyframes plumbobStateChange {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.15) translateY(-5px);
        filter: brightness(1.3);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.plumbob.state-changed {
    animation: plumbobStateChange 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- СТ  STYLE-ADDITIONS.CSS --- */
/* Skill System Simplified Styles */
.skill-xp-text {
    font-size: 11px;
    color: var(--text-light);
    margin: 8px 0;
    font-weight: bold;
}

.skill-requirements-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-req-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.skill-req-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.skill-req-item.completed {
    background: rgba(76, 175, 80, 0.1);
}

.skill-req-item.completed .req-text {
    text-decoration: line-through;
    color: var(--text-light);
    opacity: 0.7;
}

.req-check {
    font-size: 14px;
}

.level-up-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.level-up-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.level-up-btn:active {
    transform: translateY(0);
}

/* Radial Menu Requirements */
.radial-skill-reqs {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    justify-content: center;
}

.radial-req {
    font-size: 10px;
    cursor: pointer;
    color: var(--text-light);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.radial-req.done {
    color: #4caf50;
    opacity: 1;
}

.radial-req:hover {
    opacity: 1;
}

/* Floating Text Animation */
.floating-text {
    position: absolute;
    pointer-events: none;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1000;
    animation: floatUpFade 1.5s ease-out forwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.floating-text.positive {
    color: #4caf50;
}

.floating-text.negative {
    color: #f44336;
}

@keyframes floatUpFade {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -150%) scale(1);
        opacity: 0;
    }
}

/* Action Log List Styles */
.action-log-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.log-entry {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    animation: slideIn 0.3s ease-out;
}

.log-time {
    color: var(--text-light);
    font-family: monospace;
}

.log-action {
    font-weight: bold;
    color: var(--primary-dark);
}

.log-details {
    color: #666;
    font-style: italic;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Delete Skill button */
.delete-skill-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.3;
    transition: all 0.2s ease;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.delete-skill-btn:hover {
    opacity: 1;
    background: rgba(231, 76, 60, 0.1);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

/* Status Badges - Horizontal Layout */
.statuses-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.radial-statuses {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    width: max-content !important;
    max-width: 90% !important;
    z-index: 90 !important;
}

.status-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    user-select: none !important;
    color: #666 !important;
    white-space: nowrap !important;
}

.status-badge.active {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

.status-badge:hover {
    transform: translateY(-1px);
    border-color: #bbb;
}

.add-status-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px dashed #999;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.need-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    min-height: 12px;
}

.bar-label {
    pointer-events: none;
}

.editable-indicator {
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    color: var(--text-dark);
}

.editable-indicator:hover {
    color: var(--primary-light);
    opacity: 0.8;
}

.need-bar-container {
    cursor: pointer;
    transition: opacity 0.2s;
}

.need-bar-container:hover {
    opacity: 0.9;
}

/* Кнопка "Справка" */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-header-row .section-title {
    margin-bottom: 0;
}

.info-toggle-btn {
    background: transparent;
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.info-toggle-btn:hover {
    background: var(--primary-light);
    color: white;
}

.hidden {
    display: none !important;
}

/* Контрастные статусы для Темной темы */
body.dark-theme .status-badge.active {
    background-color: var(--primary-light);
    color: #ffffff;
    border-color: var(--primary-light);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

/* Цвет текста активной вкладки в Темной теме */
body.dark-theme .section-nav-btn.active {
    color: var(--surface-dark) !important;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.4) !important;
}

/* Кнопка 'Добавить навык' в Темной теме */
body.dark-theme .add-skill-btn {
    background-color: transparent;
    border: 2px dashed var(--primary-light);
    color: var(--primary-light);
    box-shadow: none;
}

body.dark-theme .add-skill-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
    border-style: solid;
}

/* Шкалирование (насечки) в навыках для Темной темы */
body.dark-theme .skill-bar-container {
    border: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
}

body.dark-theme .skill-bar-container::before {
    background-image: repeating-linear-gradient(to right,
            transparent,
            transparent calc(10% - 1px),
            rgba(255, 255, 255, 0.15) calc(10% - 1px),
            rgba(255, 255, 255, 0.15) 10%);
}

/* ─── Critical Needs Indicators ─── */

@keyframes critical-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
        border-color: rgba(230, 126, 34, 0.4);
    }

    50% {
        box-shadow: 0 0 12px 3px rgba(230, 126, 34, 0.35);
        border-color: rgba(230, 126, 34, 0.8);
    }
}

@keyframes danger-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
        border-color: rgba(231, 76, 60, 0.5);
    }

    50% {
        box-shadow: 0 0 16px 5px rgba(231, 76, 60, 0.45);
        border-color: rgba(231, 76, 60, 1);
    }
}

/* Уровень < 30%: оранжевое предупреждение */
.critical-need {
    border: 2px solid rgba(230, 126, 34, 0.6) !important;
    animation: critical-pulse 2.5s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.05) 0%, transparent 100%) !important;
}

/* Уровень < 15%: красная тревога */
.danger-need {
    border: 2px solid rgba(231, 76, 60, 0.8) !important;
    animation: danger-pulse 1.4s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08) 0%, transparent 100%) !important;
}

/* ================================================================
   ONBOARDING / TOUR (Panda Style)
   ================================================================ */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 15, 31, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.onboarding-card-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10005;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.onboarding-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.onboarding-card-wrapper.active {
    opacity: 1;
}

.onboarding-card {
    background: #fff;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
    pointer-events: auto;
}

.onboarding-card-wrapper.active .onboarding-card {
    transform: translateY(0);
}

.onboarding-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.onboarding-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
}

.tour-highlight {
    position: relative !important;
    z-index: 10001 !important;
    pointer-events: none !important;
    box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--primary-dark), 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    border-radius: 12px;

}

/* Периферийная кнопка с пандой */
.onboarding-help-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 90px;
    height: 90px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .onboarding-help-btn {
        bottom: 80px;
        /* Сдвигаем выше нижнего меню */
        right: 10px;
        transform: scale(0.9);
    }
}

.onboarding-help-btn::before {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: -1;
    animation: tourPulse 3s infinite;
}

.onboarding-help-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.panda-icon {
    width: 75px;
    height: 75px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.onboarding-help-text {
    position: absolute;
    bottom: -5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary-dark);
    padding: 3px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

@keyframes tourPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}


/* ─── Quick Actions ─── */

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 10px 0;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(155, 89, 182, 0.06) 100%);
    border: 1px solid rgba(52, 152, 219, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.14) 0%, rgba(155, 89, 182, 0.1) 100%);
}

.quick-action-card:active {
    transform: translateY(0);
}

.quick-action-card .qa-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.quick-action-card .qa-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.quick-action-card .qa-meta {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.quick-action-card .qa-unpin {
    position: absolute;
    top: 4px;
    right: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.2s;
}

.quick-action-card:hover .qa-unpin {
    opacity: 0.7;
}

.quick-actions-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* Стили перенесены в style.css */

/* Улучшения для списка навыков и действий */
.skill-req-item,
.sims-action-item {
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.skill-req-item:hover,
.sims-action-item:hover {
    background-color: rgba(52, 152, 219, 0.08);
    /* Светло-голубой фон при наведении */
}

.skill-req-item:active,
.sims-action-item:active {
    transform: scale(0.985);
}

/* Стили для этапов дорожной карты */
.skill-req-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    padding: 6px 10px;
    border-radius: 6px;
}

.skill-req-item.completed {
    opacity: 0.7;
}

.delete-req-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    margin-left: auto;
    /* Сдвигаем крестик вправо */
    opacity: 0;
    transition: opacity 0.2s;
    padding: 2px 6px;
}

.skill-req-item:hover .delete-req-btn {
    opacity: 0.6;
}

.delete-req-btn:hover {
    opacity: 1 !important;
    color: #e74c3c;
}

/* Исправление кнопки добавления этапа */
.save-btn[onclick*="promptAddSkillChecklistItem"] {
    display: block !important;
    width: 100% !important;
    cursor: pointer !important;
    text-align: center;
    border: 1px dashed var(--primary-light);
    background: transparent;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    transition: all 0.2s;
}

.save-btn[onclick*="promptAddSkillChecklistItem"]:hover {
    background: rgba(52, 152, 219, 0.1);
    border-style: solid;
}

/* Стили для форм в модальных окнах */
.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: var(--surface-light);
    color: var(--text-dark);
}

.sims-action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    user-select: none;
}

.sims-action-content {
    flex: 1;
}

.sims-action-name {
    font-weight: bold;
    font-size: 16px;
}

.sims-action-description {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.sims-action-meta {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.sims-action-meta-badge {
    font-size: 11px;
    background: #f0f2f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.skill-bar,
.skill-level-progress-bar {
    transition: width 0.5s ease-out;
}

.level-up-glow {
    animation: glow-pulse 1.5s ease-out;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 0 rgba(46, 204, 113, 0);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(46, 204, 113, 0.8);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 0 rgba(46, 204, 113, 0);
        transform: scale(1);
    }
}