/* === Eagle Terrain - Base Styles === */

:root {
    --primary: #6C5CE7;
    --primary-light: #a29bfe;
    --accent-green: #00D68F;
    --accent-orange: #FFA234;
    --accent-red: #FF6B6B;
    --accent-blue: #01B2D6;
    --accent-teal: #01B2D6;
    --bg-main: #F5F6FA;
    --bg-white: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --text-primary: #1A1D2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F0F0F0;
    --chat-user-bg: #FCE4EC;
    --chat-user-text: #4A1A2E;
    --chat-ai-bg: #F3F4F6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
}

/* === Top Navigation === */

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 24px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-wordmark {
    width: 210px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nav-separator {
    color: var(--border);
    font-size: 18px;
    font-weight: 300;
}

.nav-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    width: 320px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
    font-family: var(--font);
}

.search-bar .shortcut {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-secondary);
    font-size: 18px;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: var(--accent-red);
    border-radius: 50%;
    font-size: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.org-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: none;
}

.org-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.org-avatar.pink {
    background: linear-gradient(135deg, #E91E63 0%, #F06292 100%);
}

.org-info {
    text-align: left;
}

.org-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-location {
    font-size: 11px;
    color: var(--text-muted);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border);
    flex-shrink: 0;
}

.user-info {
    text-align: left;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* === Left Sidebar === */

.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 60px;
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 4px;
    z-index: 90;
}

.sidebar-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    transition: all 0.2s;
}

.sidebar-btn:hover {
    background: var(--bg-main);
    color: var(--text-primary);
}

.sidebar-btn.active {
    background: var(--accent-teal);
    color: white;
}

.sidebar-bottom {
    margin-top: auto;
}

/* === Main Content Area === */

.main-content {
    margin-left: 60px;
    margin-top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

/* === Cards === */

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* === Tags === */

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tag-green {
    background: #E6FFF5;
    color: #00B87A;
}

.tag-orange {
    background: #FFF3E6;
    color: #FF8C00;
}

.tag-gray {
    background: #F3F4F6;
    color: var(--text-secondary);
}

.tag-blue {
    background: #E6F4FF;
    color: var(--accent-blue);
}

/* === Progress Bar === */

.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.progress-fill.green { background: var(--accent-green); }
.progress-fill.orange { background: var(--accent-orange); }
.progress-fill.blue { background: var(--accent-blue); }
.progress-fill.teal { background: var(--accent-teal); }
.progress-fill.red { background: var(--accent-red); }

/* === Score Circle === */

.score-circle {
    width: 100px;
    height: 100px;
    position: relative;
}

.score-circle svg {
    transform: rotate(-90deg);
}

.score-circle .score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

/* === Buttons === */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
}

/* === Dropdown Menus (Nav) === */

.notification-wrapper,
.org-wrapper,
.user-wrapper {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    z-index: 1000;
    overflow: hidden;
    animation: dropdownFadeIn 0.15s ease;
}

.dropdown-menu.open {
    display: block;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    padding: 14px 16px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.dropdown-item:hover {
    background: var(--bg-main);
}

.dropdown-item.selected {
    background: #F3F0FF;
}

.dropdown-item-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.dropdown-item-icon.green { background: #E6FFF5; color: var(--accent-green); }
.dropdown-item-icon.orange { background: #FFF3E6; color: var(--accent-orange); }
.dropdown-item-icon.blue { background: #E6F4FF; color: var(--accent-blue); }
.dropdown-item-icon.purple { background: #F3F0FF; color: var(--primary); }

.dropdown-item-text {
    flex: 1;
    min-width: 0;
}

.dropdown-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-item-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.dropdown-footer a {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.dropdown-footer a:hover {
    text-decoration: underline;
}

/* === Search Results Dropdown === */

.search-bar {
    position: relative;
}

.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}

.search-results.open {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: var(--bg-main);
}

.search-result-item .result-scenario {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.search-result-item .result-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.search-no-results {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #5A4BD1;
}

.btn-link {
    background: none;
    color: var(--accent-teal);
    padding: 0;
    font-weight: 600;
    font-size: 13px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* === Scrollbar === */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* === Utilities === */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--text-secondary); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* === Simulation Instructions Modal === */
.sim-instructions-modal {
    max-width: 640px;
    width: 100%;
}

.sim-instructions-body {
    padding: 28px 32px;
    max-height: 65vh;
    overflow-y: auto;
}

.sim-profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.sim-profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #00D68F;
    flex-shrink: 0;
}

.sim-profile-info {
    flex: 1;
    min-width: 0;
}

.sim-profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.sim-profile-role {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.sim-profile-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sim-profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.sim-profile-tag.cold-call { background: #EBF5FF; color: #0095FF; }
.sim-profile-tag.warm-call { background: #FFF3E0; color: #FF9800; }
.sim-profile-tag.discovery { background: #E0F7FA; color: #00ACC1; }
.sim-profile-tag.negotiation { background: #FCE4EC; color: #E91E63; }
.sim-profile-tag.closing { background: #EDE7F6; color: #7C3AED; }
.sim-profile-tag.email-outreach { background: #FCE4EC; color: #E91E63; }
.sim-profile-tag.price-negotiation { background: #FFF3E0; color: #FF9800; }

.sim-profile-tag.mood {
    background: #E6FFF5;
    color: #00D68F;
}

.sim-profile-tag.mood::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00D68F;
}

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

.sim-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sim-section-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sim-mode-options {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.sim-mode-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
    text-align: left;
}

.sim-mode-option:hover {
    border-color: #D1D5DB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sim-mode-option.selected {
    border-color: #E91E63;
    box-shadow: 0 0 0 1px #E91E63;
}

.sim-mode-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-mode-icon.avatar-icon {
    color: #E91E63;
}

.sim-mode-icon.audio-icon {
    color: var(--text-muted);
}

.sim-mode-option.selected .sim-mode-icon.audio-icon {
    color: #E91E63;
}

.sim-mode-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.sim-mode-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.sim-instructions-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 16px 32px 24px;
    border-top: 1px solid var(--border-light);
}

.sim-cancel-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.sim-cancel-btn:hover {
    background: var(--bg-main);
    color: var(--text-primary);
}

.sim-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #E91E63;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.sim-join-btn:hover {
    background: #D81B60;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}
