/* Reset and Base Styles */
:root {
    --primary: #ff0080;
    --primary-hover: #d6006c;
    --primary-light: rgba(255, 0, 128, 0.08);
    --secondary: #1a1a1a;
    --secondary-light: #2c2c2c;
    --bg-color: #fcfcfd;
    --card-bg: #ffffff;
    --text-color: #1a1a1b;
    --text-muted: #6e6e73;
    --border-color: #e5e5ea;
    --success: #34c759;
    --warning: #ff9500;
    --info: #007aff;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    --font-title: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 0, 128, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.35);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
}

.btn-secondary-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--secondary);
}

.btn-secondary-outline:hover {
    border-color: var(--secondary);
    background-color: rgba(0, 0, 0, 0.02);
}

/* Form Styles */
.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.input-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

label {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.2s ease;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* App Screens */
.screen {
    display: none;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.screen.active {
    display: block;
    opacity: 1;
}

/* 1. Onboarding Screen & Conversational Wizard */
.onboarding-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.brand-header {
    margin-bottom: 40px;
    text-align: center;
}

.brand-logo-img {
    height: 60px;
    object-fit: contain;
}

.conversation-wizard {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}

.bot-bubble {
    background-color: var(--primary-light);
    color: var(--text-color);
    border-radius: 20px 20px 20px 4px;
    padding: 24px;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid rgba(255, 0, 128, 0.05);
}

.bot-bubble p {
    font-size: 1.15rem;
    font-weight: 500;
}

.bot-bubble strong {
    color: var(--primary);
    font-weight: 700;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.wizard-step.active {
    display: block;
}

.user-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.button-row {
    display: flex;
    gap: 16px;
}

.justify-between {
    justify-content: space-between;
}

/* OTP Digits input styles */
.otp-inputs-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.otp-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    outline: none;
    transition: all 0.2s ease;
}

.otp-digit:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.resend-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.resend-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.resend-text a:hover {
    text-decoration: underline;
}

.centered {
    align-items: center;
}

/* Dashboard App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--secondary);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-logo {
    margin-bottom: 40px;
    padding-left: 10px;
}

.sidebar-logo-img {
    height: 44px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
    background-color: var(--secondary-light);
}

.nav-item.active i {
    color: var(--primary);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-title);
}

.profile-details {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.profile-org {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.logout-btn:hover {
    color: #ffffff;
}

/* Main Content Styling */
.main-content {
    margin-left: 280px;
    flex-grow: 1;
    padding: 40px;
    background-color: var(--bg-color);
    min-height: 100vh;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.app-header h1 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 2rem;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Cards & Grid Systems */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    display: flex;
    gap: 18px;
    align-items: center;
    cursor: pointer;
}

.metric-card:hover {
    transform: translateY(-3px);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.card-data h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.card-data .value {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.card-data .subval {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-data p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.trend {
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 40px;
    padding: 2px 8px;
    font-family: var(--font-body);
}

.trend.positive {
    background-color: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.trend.neutral {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

/* Tab Management */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Drilldown Panel */
.drilldown-panel {
    margin-bottom: 30px;
    min-height: 200px;
    position: relative;
    border-left: 5px solid var(--primary);
}

.drilldown-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
    text-align: center;
    gap: 10px;
}

.drilldown-placeholder i {
    font-size: 2.2rem;
    color: var(--primary);
}

.drilldown-view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.drilldown-view.active {
    display: block;
}

.drilldown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.drilldown-header h2 {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.3rem;
}

.close-drilldown {
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.close-drilldown:hover {
    color: var(--primary);
}

/* Charts */
.chart-mock {
    width: 100%;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.01);
    border-radius: 8px;
    padding: 16px;
}

.svg-chart {
    width: 100%;
    height: 120px;
    display: block;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 8px;
    padding: 0 10px;
}

/* Drilldown Tables */
.drilldown-table-wrapper {
    overflow-x: auto;
}

.drilldown-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.drilldown-table th {
    padding: 12px 16px;
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
}

.drilldown-table td {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background-color: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.badge-warning {
    background-color: rgba(255, 149, 0, 0.1);
    color: var(--warning);
}

/* Presenter Performance Card */
.performance-compare-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.presenter-score-card {
    background-color: #fafafb;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.presenter-meta {
    margin-bottom: 16px;
}

.presenter-meta h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
}

.presenter-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.scores-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.score-item > span {
    font-size: 0.85rem;
    width: 130px;
}

.progress-bar {
    flex-grow: 1;
    height: 8px;
    border-radius: 10px;
    background-color: #e5e5ea;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 10px;
    background-color: var(--primary);
}

.score-num {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.9rem;
    width: 45px;
    text-align: right;
}

/* NPS Meter */
.nps-meter {
    margin: 20px 0;
}

.nps-gauge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    background-color: var(--primary-light);
}

.nps-number {
    font-size: 2.2rem;
    font-family: var(--font-title);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.nps-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nps-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.sentiment-breakdown {
    display: flex;
    height: 28px;
    border-radius: 50px;
    overflow: hidden;
    margin-top: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.sentiment-bar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sentiment-bar.positive {
    background-color: var(--success);
}

.sentiment-bar.neutral {
    background-color: #8e8e93;
}

.sentiment-bar.negative {
    background-color: #ff3b30;
}

/* Intent Signals */
.intent-signals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    list-style: none;
}

.intent-signals-list li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 8px;
    background-color: #fafafb;
    border-left: 4px solid var(--primary);
}

.intent-badge {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.intent-badge.high {
    background-color: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.intent-badge.medium {
    background-color: rgba(255, 149, 0, 0.1);
    color: var(--warning);
}

.intent-quote {
    font-style: italic;
    font-size: 1rem;
    font-weight: 500;
}

.intent-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Secondary Dashboard Grid */
.dashboard-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.secondary-card h3 {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.mini-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background-color: #fafafb;
    border-radius: 8px;
}

.mini-item-meta h5 {
    font-size: 0.95rem;
    font-weight: 600;
}

.mini-item-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pals Tab & Config List */
.pals-header-info {
    margin-bottom: 30px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.pals-header-info code {
    background-color: rgba(0,0,0,0.04);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.pals-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.pal-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pal-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pal-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.pal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary);
}

.pal-card h3 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.pal-category-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: block;
}

.pal-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.pal-alias-box {
    background-color: #f1f2f4;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.pal-alias-box i {
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.pal-alias-box i:hover {
    color: var(--primary);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 550px;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.3rem;
}

.close-modal {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close-modal:hover {
    color: var(--primary);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Voice Profile uploader */
.voice-uploader {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.voice-uploader:hover, .voice-uploader.dragover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.uploader-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.uploader-title {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.uploader-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.voice-file-status {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--success);
    text-align: center;
}

.voice-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0,0,0,0.05);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

/* Pal Wizard Onboarding in Modal */
.pal-wizard-content {
    max-width: 600px;
}

.pal-wizard-body {
    min-height: 250px;
}

.pal-step {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.pal-step.active {
    display: block;
}

.context-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.context-option-card {
    cursor: pointer;
}

.context-option-card input {
    display: none;
}

.context-option-card .card-inner {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.context-option-card .card-inner i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.context-option-card .card-inner span {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.8rem;
}

.context-option-card input:checked + .card-inner {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.context-option-card input:checked + .card-inner i {
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Meeting Schedule Specific Button */
.meeting-buttons-row {
    margin-top: 14px;
}

/* Clickable meeting rows */
#insights-meetings-body tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#insights-meetings-body tr:hover {
    background-color: rgba(255, 0, 128, 0.02);
}

/* Meeting Detail Modal Customizations */
.meeting-detail-content {
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Timeline & Transcript Styling */
.timeline-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.timeline-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--secondary-light);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-title);
    border: 2px solid var(--border-color);
}

.timeline-avatar.voice-matched {
    background-color: var(--primary);
    border-color: rgba(255, 0, 128, 0.2);
}

.timeline-avatar.audience {
    background-color: var(--info);
    border-color: rgba(0, 122, 255, 0.2);
}

.timeline-bubble-container {
    flex-grow: 1;
}

.timeline-speaker-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.timeline-speaker-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.timeline-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.timeline-bubble {
    background-color: #fafafb;
    border: 1px solid var(--border-color);
    border-radius: 4px 16px 16px 16px;
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-color);
    position: relative;
}

.timeline-item.voice-matched .timeline-bubble {
    background-color: rgba(255, 0, 128, 0.01);
    border-color: rgba(255, 0, 128, 0.08);
}

.timeline-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--success);
    margin-left: 6px;
    background-color: rgba(52, 199, 89, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Action Items styling */
.action-item-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background-color: #fafafb;
    border: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.action-item-row:hover {
    background-color: #ffffff;
}

.action-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
}

.action-item-text-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.action-item-text {
    font-size: 0.82rem;
    color: var(--text-color);
    font-weight: 500;
}

.action-item-row.completed .action-item-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.action-assignee-badge {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 1px 6px;
    border-radius: 4px;
    align-self: flex-start;
}

/* Objections styling */
.objection-item-card {
    padding: 12px;
    border-radius: 8px;
    background-color: rgba(255, 149, 0, 0.02);
    border: 1px solid rgba(255, 149, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.objection-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.objection-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.objection-res {
    font-size: 0.78rem;
    color: var(--text-color);
    border-left: 2px solid var(--success);
    padding-left: 8px;
    margin-top: 4px;
}

.objection-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    border-top: 1px solid rgba(0,0,0,0.03);
    padding-top: 4px;
}

/* Speaker Diagnostic metrics styling */
.speaker-stat-row {
    padding: 10px 14px;
    background-color: #fafafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.speaker-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.speaker-stat-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.speaker-stat-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.speaker-stat-badge.verified {
    background-color: rgba(52, 199, 89, 0.1);
    color: var(--success);
}

.speaker-stat-badge.external {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--info);
}

.speaker-stat-details {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.speaker-stat-val {
    font-weight: 600;
    color: var(--text-color);
}

/* Highlight metrics in radar */
.highlight-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.highlight-metric-box {
    background-color: #fafafb;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.highlight-metric-val {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.highlight-metric-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Profile and Organization Settings Tab Layout */
.profile-settings-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

.clickable-profile {
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 8px 12px;
    margin: 0 -12px 12px -12px;
    border-radius: 12px;
}

.clickable-profile:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .profile-settings-grid {
        grid-template-columns: 1fr;
    }
}

/* 8. MEETING DETAILS MODAL REDESIGN CLASSES */
.summary-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.action-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .action-items-grid {
        grid-template-columns: 1fr;
    }
}

.dynamic-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .dynamic-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.participant-scorecard-row {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    border-left: 5px solid var(--primary);
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 1.3fr;
    gap: 24px;
    align-items: start;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.participant-scorecard-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
    .participant-scorecard-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.technical-details-accordion {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background-color: #fafafb;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.technical-details-accordion[open] {
    background-color: #f7f7f9;
}

.technical-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 0;
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    outline: none;
    list-style: none; /* Hide default triangle */
}

.technical-accordion-header::-webkit-details-marker {
    display: none; /* Hide default triangle in Safari */
}

.technical-accordion-header .header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.technical-accordion-header .header-right {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.technical-details-accordion[open] .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.2s ease;
}

/* Dialogue viewer classes */
.pt-dialogue-row {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    border-left: 4px solid var(--primary);
}

.pt-dialogue-time {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    align-self: flex-start;
    background-color: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.pt-dialogue-text {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-color);
}


