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

:root {
    /* Coaching interface CSS variables */
    --coaching-background-white: #ffffff;
    --coaching-background-light: #f8fafc;
    --coaching-radius-sm: 6px;
    --coaching-radius-md: 8px;
    --coaching-radius-full: 9999px;
    --coaching-spacing-sm: 8px;
    --coaching-spacing-md: 16px;
    --coaching-spacing-lg: 24px;
    --coaching-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1);
    --coaching-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --coaching-border-light: #e5e7eb;
    --coaching-text-primary: #1f2937;
    --coaching-text-secondary: #374151;
    --coaching-text-muted: #6b7280;
    --coaching-heading-medium: 1.125rem;
    --coaching-body-text: 0.875rem;
    --coaching-small-text: 0.75rem;
    --coaching-tiny-text: 0.625rem;
    --coaching-success-green: #10b981;
    --coaching-success-light: #dcfce7;
    --coaching-warning-orange: #f59e0b;
    --coaching-info-blue: #3b82f6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    background: linear-gradient(to bottom right, #f1f5f9, #cbd5e1);
    overflow: hidden;
    position: relative;
}

/* Bottom Layer - Contextual Content */
.bottom-layer {
    position: absolute;
    inset: 0;
    background-color: #f9fafb;
    padding: 24px;
    padding-top: 88px;
    overflow-y: auto;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding: 16px 24px;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-header svg {
    width: 24px;
    height: 24px;
}

.content-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

.card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

/* Bootstrap grid handles card layouts */

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

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

.status-badge {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.status-on-track { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.status-needs-support { background: #fed7aa; color: #9a3412; border-color: #fdba74; }
.status-at-risk { background: #fecaca; color: #991b1b; border-color: #fca5a5; }
.status-ahead { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.status-behind { background: #fecaca; color: #991b1b; border-color: #fca5a5; }

/* Focus Overlay */
.focus-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out, backdrop-filter 200ms ease-in-out;
}

.no-blur .focus-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.focus-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Floating Minimized Icon */
.floating-icon {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(to bottom right, #4ade80, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    transform: scale(0);
    opacity: 0;
}

.floating-icon.visible {
    transform: scale(1);
    opacity: 1;
}

.floating-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.floating-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Chat Interface */
.chat-container {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: all 0.2s ease, backdrop-filter 200ms ease-in-out;
    min-width: 320px;
    min-height: 400px;
}

.no-blur .chat-container {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 1);
}

.chat-container.dragging {
    cursor: grabbing;
}

.chat-container.locked {
    cursor: default;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    background: rgba(249, 250, 251, 0.95);
    border-radius: 12px 12px 0 0;
    cursor: grab;
}

.chat-header.dragging {
    cursor: grabbing;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(to bottom right, #4ade80, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar svg {
    width: 16px;
    height: 16px;
    color: white;
}

.chat-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.chat-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Bootstrap handles chat-controls layout */

.control-btn {
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

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

.control-btn svg {
    width: 16px;
    height: 16px;
}

/* Messages */
.messages-container {
    padding: 24px 16px;
    height: calc(100% - 140px);
    overflow-y: auto;
}

.message {
    margin-bottom: 24px;
}

.message.user {
    display: flex;
    justify-content: flex-end;
}

.message.ai {
    display: flex;
    justify-content: flex-start;
}

.message-content {
    max-width: 75%;
}

.message.ai .message-content {
    max-width: 100%;
}

.ai-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(to bottom right, #4ade80, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar svg {
    width: 12px;
    height: 12px;
    color: white;
}

.ai-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.message-bubble.user {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-right-radius: 4px;
}

.message-bubble.ai {
    background: transparent;
    color: #1f2937;
    border: none;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    margin-top: 4px;
    padding: 0 4px;
}

.message.user .message-time {
    text-align: right;
    color: #9ca3af;
}

.message.ai .message-time {
    text-align: left;
    color: #6b7280;
}

/* Input Area */
.input-container {
    padding: 16px;
    border-top: 1px solid #f3f4f6;
    background: rgba(249, 250, 251, 0.95);
    border-radius: 0 0 12px 12px;
}

.input-wrapper {
    position: relative;
}

.message-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    font-size: 0.875rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    outline: none;
    resize: none;
    min-height: 44px;
}

.message-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.send-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-btn.enabled {
    background: #2563eb;
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.send-btn.enabled:hover {
    background: #1d4ed8;
}

.send-btn.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

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

/* Resize Handle */
.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    cursor: nw-resize;
    opacity: 0.3;
    transition: opacity 0.2s ease;
    background: linear-gradient(-45deg, transparent 30%, #9ca3af 30%, #9ca3af 40%, transparent 40%, transparent 60%, #9ca3af 60%, #9ca3af 70%, transparent 70%);
}

.resize-handle:hover {
    opacity: 0.6;
}

/* Context Indicator */
.context-indicator {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    padding: 12px;
}

.context-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.context-value {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
    text-transform: capitalize;
}

/* Content History Stack */
.content-row {
    margin-bottom: 24px;
    animation: slideInFromTop 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-row:not(:last-child) {
    animation: slideDown 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.content-row-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.content-row-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-row-header time {
    font-size: 0.75rem;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

.row-controls {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.content-row:hover .row-controls {
    opacity: 1;
}

.row-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.row-btn.delete {
    background: #fecaca;
    color: #991b1b;
}

.row-btn.delete:hover {
    background: #fca5a5;
}

.row-btn svg {
    width: 12px;
    height: 12px;
}

.content-row-deleting {
    animation: slideOutUp 0.3s ease forwards;
}

@keyframes slideOutUp {
    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        margin-bottom: 0;
        overflow: hidden;
    }
}

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

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(24px);
    }
}

/* Layout Variants - Bootstrap handles these */
.layout-mixed,
.layout-full-width,
.layout-tiles-grid,
.layout-summary-sidebar {
    /* Bootstrap grid handles layout */
}

/* Universal Dynamic Grid Layout */
.layout-dynamic-grid {
    width: 100%;
}

.dynamic-grid {
    width: 100%;
    transition: all 0.3s ease;
}

.dynamic-team-card,
.insight-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dynamic-team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.insight-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for universal dynamic grid */
@media (max-width: 1200px) {
    .dynamic-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    .dynamic-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
        gap: 12px !important;
        padding: 0 12px !important;
    }
    
    .dynamic-team-card {
        padding: 12px !important;
    }
    
    .insight-card {
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    .dynamic-grid {
        grid-template-columns: 1fr !important;
        padding: 0 8px !important;
        gap: 8px !important;
    }
    
    .content-header {
        padding: 12px 16px;
    }
    
    .content-header h2 {
        font-size: 1.25rem;
    }
}

/* Widget Management */
.widget {
    position: relative;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.widget-adding {
    animation: fadeIn 0.3s ease;
}

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

/* Widget Library Panel */
.widget-library {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.widget-library.open {
    right: 0;
}

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

.widget-library-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.widget-library-content {
    padding: 16px;
}

.saved-widget {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.saved-widget:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.saved-widget-content {
    flex: 1;
    cursor: pointer;
}

.saved-widget-title {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.saved-widget-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.saved-widget-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.saved-widget-delete:hover {
    background: #fee2e2;
}

/* Enhanced Widget Types */
.team-tile {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.team-tile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Bootstrap flex utilities handle member-info layout */

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.member-details h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.member-role {
    font-size: 0.75rem;
    color: #6b7280;
}

.member-stats {
    text-align: right;
}

.progress-ring {
    width: 48px;
    height: 48px;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 4;
}

.progress-ring-fill {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}

.next-action {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: #0369a1;
    margin-top: 8px;
}

/* Risk Assessment Widgets */
.risk-widget {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.risk-header {
    padding: 16px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-bottom: 1px solid #fca5a5;
}

.risk-severity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.severity-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.risk-content {
    padding: 16px;
}

.impact-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.impact-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
}

.impact-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.impact-value {
    font-weight: 600;
    color: #1f2937;
}

.mitigation-list {
    margin-top: 16px;
}

.mitigation-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.mitigation-item svg {
    width: 16px;
    height: 16px;
    color: #059669;
    margin-top: 2px;
}

/* Analytics Widgets */
.analytics-widget {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 16px;
}

/* Bootstrap grid handles metrics layout */

.metric-card {
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.metric-trend {
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.metric-trend.up {
    color: #059669;
}

.metric-trend.down {
    color: #dc2626;
}

.chart-placeholder {
    height: 200px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Timeline Widget */
.timeline-widget {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 16px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-left: 4px solid #e5e7eb;
    margin-bottom: 12px;
    position: relative;
}

.timeline-item.critical {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.timeline-item.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.timeline-item.success {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9ca3af;
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item.critical .timeline-dot {
    background: #ef4444;
}

.timeline-item.warning .timeline-dot {
    background: #f59e0b;
}

.timeline-item.success .timeline-dot {
    background: #10b981;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.timeline-dependencies {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.dependency-chain {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #6b7280;
}

.dependency-arrow {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

/* Notifications */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1200;
    max-width: 300px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

  /* ============================================
     AI COACHING SUGGESTIONS - Center Column
     ============================================ */
  .coaching-suggestions-card {
    background: var(--coaching-background-white);
    border-radius: var(--coaching-radius-md);
    padding: var(--coaching-spacing-lg);
    box-shadow: var(--coaching-shadow-card);
    border: 1px solid var(--coaching-border-light);
  }

  .card-title {
    font-size: var(--coaching-heading-medium);
    color: var(--coaching-text-secondary);
    margin-bottom: var(--coaching-spacing-md);
    font-weight: 600;
  }

  .card-divider {
    border-top: 1px solid var(--coaching-border-light);
    margin: var(--coaching-spacing-md) 0;
  }

  .section-title {
    font-size: var(--coaching-heading-medium);
    color: var(--coaching-text-secondary);
    margin-bottom: var(--coaching-spacing-md);
    font-weight: 600;
  }

  /* ============================================
     RECOMMENDATIONS SECTION
     ============================================ */
  .recommendations-section {
    margin-bottom: var(--coaching-spacing-lg);
  }

  .recommendation-card {
    border-radius: var(--coaching-radius-sm);
    padding: var(--coaching-spacing-md);
    margin-bottom: var(--coaching-spacing-md);
    border: 1px solid;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .recommendation-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--coaching-shadow-hover);
  }

  .recommendation-card:last-child {
    margin-bottom: 0;
  }

  .recommendation-card.high {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: var(--coaching-success-light);
  }

  .recommendation-card.medium {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-color: var(--coaching-warning-orange);
  }

  .recommendation-card.low {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--coaching-info-blue);
  }

  .recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--coaching-spacing-sm);
  }

  .recommendation-title-section {
    display: flex;
    align-items: center;
    gap: var(--coaching-spacing-sm);
  }

  .category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .category-dot.text-green-600 {
    background-color: var(--coaching-success-green);
  }

  .category-dot.text-orange-600 {
    background-color: var(--coaching-warning-orange);
  }

  .category-dot.text-blue-600 {
    background-color: var(--coaching-info-blue);
  }

  .category-dot.text-gray-600 {
    background-color: #6b7280;
  }

  .recommendation-title {
    font-size: var(--coaching-body-text);
    font-weight: 600;
    color: var(--coaching-text-primary);
    margin: 0;
  }

  .recommendation-meta {
    display: flex;
    align-items: center;
    gap: var(--coaching-spacing-sm);
  }

  .priority-badge {
    padding: 2px 8px;
    border-radius: var(--coaching-radius-full);
    font-size: var(--coaching-tiny-text);
    font-weight: 500;
  }
  
  .priority-badge.high {
    background-color: #dcfce7;
    color: #166534;
  }
  
  .priority-badge.medium {
    background-color: #fed7aa;
    color: #9a3412;
  }
  
  .priority-badge.low {
    background-color: #dbeafe;
    color: #1e40af;
  }

  .confidence-score {
    font-size: var(--coaching-small-text);
    color: var(--coaching-text-muted);
  }

  .recommendation-text {
    font-size: var(--coaching-body-text);
    color: var(--coaching-text-secondary);
    line-height: 1.4;
    margin-bottom: var(--coaching-spacing-sm);
  }

  .supporting-evidence {
    font-size: var(--coaching-small-text);
    color: var(--coaching-text-muted);
    margin: 0;
  }

  .no-recommendations-message {
    text-align: center;
    color: var(--coaching-text-muted);
    padding: var(--coaching-spacing-lg) 0;
    font-size: var(--coaching-body-text);
  }

  /* ============================================
     SUGGESTED QUESTIONS
     ============================================ */
  .suggested-questions {
    margin-top: var(--coaching-spacing-lg);
    padding-top: var(--coaching-spacing-lg);
    border-top: 1px solid var(--coaching-border-light);
  }

  .questions-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .question-item {
    display: flex;
    align-items: flex-start;
    padding: var(--coaching-spacing-sm) 0;
    transition: all 0.3s ease;
  }

  .question-item:hover {
    background: var(--coaching-background-light);
    padding-left: var(--coaching-spacing-sm);
    border-radius: var(--coaching-radius-sm);
  }

  .question-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: var(--coaching-spacing-sm);
    margin-top: 6px;
    flex-shrink: 0;
    background: var(--coaching-info-blue);
  }

  .question-content {
    flex: 1;
  }

  .question-text {
    font-size: var(--coaching-body-text);
    color: var(--coaching-text-secondary);
    font-weight: 500;
    line-height: 1.4;
  }

  .question-item:hover .question-text {
    color: var(--coaching-text-primary);
  }

  .no-questions-message {
    color: var(--coaching-text-muted);
    font-size: var(--coaching-body-text);
  }

  /* ============================================
     DIRECT REPORT VIEW STYLING
     ============================================ */
  .coaching-main-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 24px;
  }

  .meeting-info-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
  }

  .meeting-info {
    margin-bottom: 20px;
  }

  .meeting-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
  }

  .meeting-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.875rem;
  }

  .meta-separator {
    color: #cbd5e1;
  }

  .ai-summary-wrapper {
    margin-top: 20px;
  }

  .ai-summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .ai-summary-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
  }

  .ai-summary-text {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .workload-indicators {
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
  }

  .indicators-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .indicator-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #374151;
  }

  .indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .indicator-dot.green { background-color: #10b981; }
  .indicator-dot.blue { background-color: #3b82f6; }
  .indicator-dot.orange { background-color: #f59e0b; }
  .indicator-dot.red { background-color: #ef4444; }

  .three-column-container {
    padding: 24px;
  }

  .three-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }

  @media (max-width: 1024px) {
    .three-column-layout {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }

  .goal-progress-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .goals-section {
    margin-bottom: 20px;
  }

  .goal-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
  }

  .goal-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .goal-info {
    flex: 1;
  }

  .goal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
  }

  .goal-description {
    font-size: 0.875rem;
    color: #6b7280;
  }

  .status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
  }

  .status-badge-green {
    background: #dcfce7;
    color: #166534;
  }

  .status-badge-blue {
    background: #dbeafe;
    color: #1e40af;
  }

  .status-badge-orange {
    background: #fed7aa;
    color: #9a3412;
  }

  .status-badge-red {
    background: #fecaca;
    color: #991b1b;
  }

  .progress-container {
    margin-top: 8px;
  }

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

  .progress-label {
    font-size: 0.875rem;
    color: #6b7280;
  }

  .progress-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
  }

  .progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
  }

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

  .progress-green { background-color: #10b981; }
  .progress-blue { background-color: #3b82f6; }
  .progress-orange { background-color: #f59e0b; }
  .progress-red { background-color: #ef4444; }

  .activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f9fafb;
  }

  .activity-item:last-child {
    border-bottom: none;
  }

  .activity-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
  }

  .activity-indicator-green { background-color: #10b981; }
  .activity-indicator-blue { background-color: #3b82f6; }
  .activity-indicator-orange { background-color: #f59e0b; }
  .activity-indicator-red { background-color: #ef4444; }

  .activity-content {
    flex: 1;
  }

  .activity-description {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
  }

  .activity-time {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
  }

  .sentiment-section {
    background: #f8fafc;
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
  }

  .sentiment-trend {
    font-size: 0.875rem;
  }

  .sentiment-text {
    color: #374151;
    margin-bottom: 4px;
  }

  .sentiment-keywords {
    color: #6b7280;
    font-style: italic;
  }

  .meeting-insights-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .insights-section {
    margin-bottom: 20px;
  }

  .insights-section:last-child {
    margin-bottom: 0;
  }

  .performance-trend-container {
    background: #f8fafc;
    border-radius: 6px;
    padding: 16px;
  }

  .trend-description {
    color: #374151;
    margin-bottom: 8px;
  }

  .impact-container,
  .opportunities-container {
    background: #f8fafc;
    border-radius: 6px;
    padding: 16px;
  }

  .impact-description,
  .opportunities-description {
    color: #374151;
    margin-bottom: 8px;
  }

  .impact-list,
  .opportunities-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .impact-item,
  .opportunity-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
  }

  .impact-bullet,
  .opportunity-bullet {
    color: #6b7280;
    font-weight: bold;
  }

  .impact-text,
  .opportunity-text {
    color: #4b5563;
    font-size: 0.875rem;
  }

  .confidence-card {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 16px;
  }

  .confidence-text {
    color: #0369a1;
    font-weight: 600;
    margin-bottom: 4px;
  }

  .confidence-subtext {
    color: #0284c7;
    font-size: 0.875rem;
  }

  .action-buttons-section {
    background: #f8fafc;
    padding: 24px;
    border-top: 1px solid #e2e8f0;
  }

  .action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
  }

  .action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .action-button.primary {
    background: #2563eb;
    color: white;
  }

  .action-button.primary:hover {
    background: #1d4ed8;
  }

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

  .action-button.secondary:hover {
    background: #e5e7eb;
  }

  .action-button.success {
    background: #10b981;
    color: white;
  }

  .action-button.success:hover {
    background: #059669;
  }

  .action-button.info {
    background: #0ea5e9;
    color: white;
  }

  .action-button.info:hover {
    background: #0284c7;
  }

  .btn-icon {
    font-size: 1rem;
  }

  .btn-text {
    font-weight: 500;
  }

  /* ============================================
     ENHANCED CONTENT ROW STYLING
     ============================================ */
  .content-row {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    overflow: hidden;
    animation: slideInFromTop 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .content-row-header {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
  }

  .content-row-header h3 {
    color: #1e293b;
    font-weight: 600;
    margin: 0;
  }

  .layout-full-width {
    padding: 0;
  }

  /* Team member tile hover improvements */
  .team-member-clickable {
    position: relative;
    overflow: hidden;
  }

  .team-member-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent #3b82f6 transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .team-member-clickable:hover::before {
    opacity: 1;
  }

  .team-member-clickable::after {
    content: '👁';
    position: absolute;
    top: 4px;
    right: 4px;
    color: white;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
  }

  .team-member-clickable:hover::after {
    opacity: 1;
  }

  /* ============================================
     GOAL & PROJECT NAVIGATION STYLING
     ============================================ */
  .goal-card-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent #3b82f6 transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .goal-card-clickable:hover::before {
    opacity: 1;
  }

  .project-card-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent #10b981 transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .project-card-clickable:hover::before {
    opacity: 1;
  }

  /* Project card styling for grid layout */
  .project-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  }

  /* ============================================
     TASK MANAGEMENT STYLING
     ============================================ */
  .task-item {
    transition: all 0.2s ease;
  }

  .task-item:hover .edit-task-btn,
  .task-item:hover .delete-task-btn {
    opacity: 1;
  }

  .task-checkbox {
    transition: all 0.2s ease;
  }

  .task-checkbox:checked {
    transform: scale(1.1);
  }

  .task-text {
    transition: all 0.2s ease;
  }

  .edit-task-btn:hover {
    background: #e5e7eb !important;
    border-color: #9ca3af !important;
  }

  .delete-task-btn:hover {
    background: #fca5a5 !important;
    border-color: #f87171 !important;
  }

  .save-task-btn:hover {
    background: #059669 !important;
  }

  .cancel-task-btn:hover {
    background: #ef4444 !important;
  }

  /* Task completion animation */
  .task-item.completing {
    animation: taskComplete 0.5s ease;
  }

  @keyframes taskComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); background: #dcfce7; }
    100% { transform: scale(1); }
  }

  /* Task deletion animation */
  .task-item.deleting {
    animation: taskDelete 0.3s ease forwards;
  }

  @keyframes taskDelete {
    0% { 
      transform: translateX(0); 
      opacity: 1; 
    }
    100% { 
      transform: translateX(-100%); 
      opacity: 0; 
      max-height: 0;
      padding: 0;
      margin: 0;
    }
  }

  /* New task creation styling */
  .task-item.new-task {
    background: #f0f9ff;
    border: 2px solid #3b82f6;
    animation: newTaskAppear 0.3s ease;
  }

  @keyframes newTaskAppear {
    0% { 
      transform: translateY(-20px); 
      opacity: 0; 
    }
    100% { 
      transform: translateY(0); 
      opacity: 1; 
    }
  }

  /* Progress bar enhancements */
  .progress-bar {
    position: relative;
    overflow: visible;
  }

  .progress-fill {
    position: relative;
    transition: width 0.3s ease;
  }

  .progress-fill::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 12px;
    background: inherit;
    border-radius: 2px;
    opacity: 0.8;
  }

  /* Responsive improvements for task management */
  @media (max-width: 768px) {
    .task-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }

    .task-item .edit-task-btn,
    .task-item .delete-task-btn {
      opacity: 1;
      font-size: 0.75rem;
      padding: 6px 12px;
    }

    .task-text {
      width: 100%;
      margin: 4px 0;
    }
  }

  /* Typing Indicator Animation */
  .typing-indicator {
    animation: fadeIn 0.3s ease-in-out;
  }

  .typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
  }

  .typing-dots .dot {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingDots 1.4s infinite ease-in-out;
  }

  .typing-dots .dot:nth-child(1) {
    animation-delay: 0s;
  }

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

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

  @keyframes typingDots {
    0%, 60%, 100% {
      transform: translateY(0);
      opacity: 0.3;
    }
    30% {
      transform: translateY(-8px);
      opacity: 1;
    }
  }

  /* Streaming Message Styles */
  .streaming-content {
    position: relative;
  }

  .typing-cursor {
    color: #3b82f6;
    animation: blink 1s infinite;
    font-weight: bold;
    margin-left: 2px;
  }

  @keyframes blink {
    0%, 50% {
      opacity: 1;
    }
    51%, 100% {
      opacity: 0;
    }
  }

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

  /* Enhanced message bubble for streaming */
  .message.ai .message-bubble {
    position: relative;
    overflow: hidden;
  }

  .streaming-content {
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  /* ChatGPT-style typing animation */
  .message.ai.typing-indicator .message-bubble {
    background: rgba(249, 250, 251, 0.5);
    border: 1px solid rgba(229, 231, 235, 0.3);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .typing-dots {
    justify-content: center;
    width: 100%;
  }

  /*-----*/