/**
 * Simulator CSS — Стили для симулятора "День РОПа"
 *
 * Mobile-first подход
 * Основные цвета:
 * - Primary: #6366f1 (индиго)
 * - Success: #10b981 (зелёный)
 * - Warning: #f59e0b (оранжевый)
 * - Danger: #ef4444 (красный)
 * - Background: #f9fafb (светло-серый)
 * - Text: #111827 (тёмно-серый)
 *
 * @version 1.0
 * @date 2026-01-27
 */

/* ===== GLOBAL ===== */

.simulator-page {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
    color: #111827;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

/* ===== LOADING SCREEN ===== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #6b7280;
    font-size: 14px;
}

/* ===== CONNECTION STATUS ===== */

.connection-status {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ef4444;
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    z-index: 9998;
}

.connection-status i {
    width: 16px;
    height: 16px;
}

/* ===== WELCOME SCREEN ===== */

.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9990;
    padding: 20px;
}

.welcome-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.welcome-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
    color: #111827;
    line-height: 1.3;
}

.welcome-description p {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 30px;
}

.welcome-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.feature i {
    width: 24px;
    height: 24px;
    color: #6366f1;
    flex-shrink: 0;
}

.feature-text {
    font-size: 14px;
    color: #374151;
}

.feature-text strong {
    color: #111827;
    font-weight: 600;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #6366f1;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #4f46e5;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-text {
    background-color: transparent;
    color: #6b7280;
    font-size: 14px;
}

.btn-text:hover {
    color: #374151;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* ===== ERROR SCREEN ===== */

.error-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9995;
    padding: 20px;
}

.error-content {
    text-align: center;
    max-width: 400px;
}

.error-content i {
    width: 64px;
    height: 64px;
    color: #ef4444;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111827;
}

.error-content p {
    color: #6b7280;
    margin-bottom: 24px;
}

/* ===== SIMULATOR CONTAINER ===== */

.simulator-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== NAVIGATION ===== */

.simulator-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.simulator-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.btn-menu,
.btn-save {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-menu:hover,
.btn-save:hover {
    background-color: #f3f4f6;
}

.btn-menu i,
.btn-save i {
    width: 24px;
    height: 24px;
    color: #374151;
}

/* ===== SIDE MENU ===== */

.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.side-menu.open {
    left: 0;
}

.side-menu-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.btn-close-menu {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.btn-close-menu i {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.side-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.menu-section {
    margin-bottom: 24px;
}

.menu-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.menu-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.progress-label {
    color: #6b7280;
}

.progress-value {
    color: #111827;
    font-weight: 600;
}

.menu-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-align: left;
    transition: background-color 0.2s;
    margin-bottom: 8px;
}

.menu-btn:hover {
    background-color: #f3f4f6;
}

.menu-btn i {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

/* ===== MAIN CONTENT ===== */

.main-content {
    flex: 1;
    padding: 20px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* ===== DASHBOARD ===== */

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-header {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.day-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.day-number {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.day-phase {
    font-size: 14px;
    color: #6b7280;
    padding: 4px 12px;
    background-color: #f3f4f6;
    border-radius: 20px;
}

.day-date {
    font-size: 14px;
    color: #9ca3af;
}

.time-remaining {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #6366f1;
}

.time-remaining i {
    width: 20px;
    height: 20px;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.metric-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.metric-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.metric-goal {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #6366f1;
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-fill.completed {
    background-color: #10b981;
}

.metric-status {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.morale-high {
    color: #10b981;
}

.morale-medium {
    color: #f59e0b;
}

.morale-low {
    color: #ef4444;
}

.dashboard-team {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-team h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111827;
}

.team-member {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.team-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.team-member-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.team-member-role {
    font-size: 12px;
    color: #6b7280;
}

.team-member-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.loyalty-high {
    color: #10b981;
}

.loyalty-medium {
    color: #f59e0b;
}

.loyalty-low {
    color: #ef4444;
}

.btn-talk {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: background-color 0.2s;
}

.btn-talk:hover {
    background-color: #e5e7eb;
}

.btn-talk i {
    width: 16px;
    height: 16px;
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-progress {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-progress h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111827;
}

.goal-item {
    margin-bottom: 16px;
}

.goal-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

/* ===== DIALOG ===== */

.dialog {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    max-height: 800px;
}

.dialog-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-back {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.btn-back i {
    width: 20px;
    height: 20px;
}

.dialog-npc-info {
    flex: 1;
}

.npc-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.npc-status {
    font-size: 12px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.npc-status i {
    width: 8px;
    height: 8px;
}

.dialog-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dialog-empty {
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.message-player {
    align-self: flex-end;
    background-color: #6366f1;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.message-npc {
    align-self: flex-start;
    background-color: #f3f4f6;
    color: #111827;
    border-bottom-left-radius: 4px;
}

.message-npc-name {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
}

.loyalty-change {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.loyalty-change i {
    width: 12px;
    height: 12px;
}

.loyalty-positive {
    color: #10b981;
}

.loyalty-negative {
    color: #ef4444;
}

.typing-indicator {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background-color: #6b7280;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

.dialog-input {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
}

#player-message {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
}

#player-message:focus {
    outline: none;
    border-color: #6366f1;
}

.btn-send {
    padding: 12px 20px;
    background-color: #6366f1;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-send:hover {
    background-color: #4f46e5;
}

.btn-send i {
    width: 16px;
    height: 16px;
}

.dialog-actions {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-end-dialog {
    width: 100%;
    padding: 12px 16px;
    background-color: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-end-dialog:hover {
    background-color: #e5e7eb;
}

.btn-end-dialog i {
    width: 16px;
    height: 16px;
}

.dialog-error {
    padding: 12px 16px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dialog-error i {
    width: 16px;
    height: 16px;
}

/* ===== EVENT ===== */

.event {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.event-type {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6366f1;
    padding: 4px 12px;
    background-color: #eef2ff;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.event-time {
    font-size: 14px;
    color: #6b7280;
}

.event-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.3;
}

.event-description {
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-context,
.event-urgency {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.event-context {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.event-urgency {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.event-context i,
.event-urgency i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.event-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.choice-btn {
    width: 100%;
    padding: 16px 20px;
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.choice-btn:hover {
    border-color: #6366f1;
    background-color: #eef2ff;
}

.choice-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.choice-text {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.choice-time {
    font-size: 12px;
    color: #6b7280;
}

.choice-hint {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #fffbeb;
    border-radius: 6px;
    font-size: 12px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.choice-hint i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ===== EVENT OUTCOME ===== */

.event-outcome {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.outcome-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.outcome-choice {
    margin-bottom: 24px;
}

.outcome-choice-text {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.outcome-immediate {
    margin-bottom: 24px;
}

.outcome-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.outcome-description {
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 12px;
}

.outcome-impact {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.impact-positive {
    background-color: #d1fae5;
    color: #065f46;
}

.impact-neutral {
    background-color: #e0e7ff;
    color: #3730a3;
}

.impact-negative {
    background-color: #fee2e2;
    color: #991b1b;
}

.outcome-changes {
    margin-bottom: 24px;
}

.change-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
}

.change-item i {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.change-item.positive i {
    color: #10b981;
}

.change-item.negative i {
    color: #ef4444;
}

.change-label {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.change-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.outcome-future {
    padding: 12px 16px;
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    font-size: 14px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.outcome-future i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-continue {
    width: 100%;
    padding: 14px 20px;
    background-color: #6366f1;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-continue:hover {
    background-color: #4f46e5;
}

.btn-continue i {
    width: 18px;
    height: 18px;
}

/* ===== TEAM ===== */

.team-screen,
.employee-details {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.team-header,
.details-header {
    margin-bottom: 24px;
}

.team-header h2,
.details-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 8px 0;
    color: #111827;
}

.employee-archetype {
    font-size: 14px;
    color: #6b7280;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.team-member-card {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.member-header {
    margin-bottom: 16px;
}

.member-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.member-role {
    font-size: 14px;
    color: #6b7280;
}

.member-stats {
    margin-bottom: 16px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background-color: #6366f1;
    border-radius: 4px;
    transition: width 0.3s;
}

.member-alerts {
    margin-bottom: 16px;
}

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.alert i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

.btn-details {
    width: 100%;
    padding: 10px 16px;
    background-color: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-details:hover {
    background-color: #e5e7eb;
}

.btn-details i {
    width: 16px;
    height: 16px;
}

.team-summary {
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
}

.team-summary h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111827;
}

.summary-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-label {
    color: #6b7280;
}

.summary-value {
    color: #111827;
    font-weight: 600;
}

.details-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.stat-value-large {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

.details-section {
    margin-bottom: 24px;
}

.details-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111827;
}

.promise-item,
.issue-item {
    padding: 12px 16px;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.promise-text,
.issue-text {
    font-size: 14px;
    color: #111827;
    margin-bottom: 8px;
}

.promise-deadline,
.promise-day,
.issue-severity,
.issue-day {
    font-size: 12px;
    color: #6b7280;
}

.issue-item.severity-1 {
    border-left: 4px solid #fbbf24;
}

.issue-item.severity-2 {
    border-left: 4px solid #f59e0b;
}

.issue-item.severity-3 {
    border-left: 4px solid #ef4444;
}

.relationship-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    padding: 12px 16px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.timeline-day {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 4px;
}

.timeline-change {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-change.positive {
    color: #10b981;
}

.timeline-change.negative {
    color: #ef4444;
}

.timeline-reason {
    font-size: 13px;
    color: #374151;
}

.details-actions {
    margin-top: 24px;
}

/* ===== RESULTS ===== */

.results-screen {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.results-header {
    text-align: center;
    margin-bottom: 32px;
}

.results-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
}

.results-date {
    font-size: 14px;
    color: #6b7280;
}

.final-score {
    margin-top: 20px;
}

.score-label {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.05em;
}

.score-value {
    font-size: 64px;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
    margin: 8px 0;
}

.score-max {
    font-size: 18px;
    color: #6b7280;
}

.results-section {
    margin-bottom: 32px;
}

.results-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111827;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.metric-achievement {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.metric-achievement.achieved {
    color: #10b981;
}

.competencies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.competency-card {
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.competency-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.competency-progress {
    margin-bottom: 8px;
}

.competency-value {
    font-size: 13px;
    color: #6b7280;
}

.team-changes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-data {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-event {
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #e5e7eb;
}

.timeline-event.positive {
    background-color: #d1fae5;
    border-left-color: #10b981;
}

.timeline-event.negative {
    background-color: #fee2e2;
    border-left-color: #ef4444;
}

.timeline-event.neutral {
    background-color: #f3f4f6;
    border-left-color: #6b7280;
}

.event-type {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 4px;
}

.event-impact {
    font-size: 13px;
    color: #374151;
    margin-top: 4px;
}

.day-summary {
    padding: 16px;
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    font-size: 14px;
    color: #1e40af;
    line-height: 1.6;
}

.results-final {
    text-align: center;
}

.final-competencies,
.final-metrics,
.team-final-state {
    margin-bottom: 24px;
}

.final-competency {
    margin-bottom: 16px;
}

.competency-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.competency-bar {
    height: 12px;
    background-color: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.competency-fill {
    height: 100%;
    background-color: #6366f1;
    border-radius: 6px;
    transition: width 0.5s;
}

.competency-fill.level-expert {
    background-color: #10b981;
}

.competency-fill.level-advanced {
    background-color: #3b82f6;
}

.competency-fill.level-intermediate {
    background-color: #f59e0b;
}

.competency-fill.level-beginner {
    background-color: #6b7280;
}

.competency-level {
    font-size: 13px;
    color: #6b7280;
}

.final-metric {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.team-member-final {
    padding: 12px;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.team-member-final .member-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.member-stats span {
    font-size: 14px;
    color: #6b7280;
    margin-right: 16px;
}

.performance-rating {
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.rating-excellent {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.rating-good {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.rating-average {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.rating-poor {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.rating-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.rating-description {
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

/* ===== RESPONSIVE (TABLET+) ===== */

@media (min-width: 768px) {
    .welcome-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome-actions {
        flex-direction: row;
        justify-content: center;
    }

    .dashboard-metrics {
        grid-template-columns: repeat(3, 1fr);
    }

    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .competencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-actions {
        flex-direction: row;
        justify-content: center;
    }

    .details-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== RESPONSIVE (DESKTOP) ===== */

@media (min-width: 1024px) {
    .main-content {
        max-width: 1000px;
    }
}
