/* Sarah CEO Dashboard Styles */
:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #3b82f6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #252542;
    --bg-card: #16162a;
    --bg-hover: #1e1e3a;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border-color: #2e2e4a;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    height: 70px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text .subtitle {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.header-center {
    display: flex;
    align-items: center;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-tertiary);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

.status-dot.connecting {
    background: var(--warning);
    animation: pulse 1s infinite;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

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

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    margin-left: 8px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Layout */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    color: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.nav-item i {
    width: 20px;
    font-size: 16px;
}

.nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50px;
}

.nav-badge.new {
    background: var(--danger);
    animation: pulse 2s infinite;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 12px;
    border-top: 1px solid var(--border-color);
}

.quick-actions h4 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.btn-quick {
    width: 100%;
    padding: 10px 16px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    transition: var(--transition);
}

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

.btn-quick:last-child:hover {
    background: var(--danger);
    border-color: var(--danger);
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--bg-primary);
}

.section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

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

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

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-large {
    grid-column: span 2;
}

.card-wide {
    grid-column: span 3;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--primary);
}

.card-body {
    padding: 20px;
}

.badge-live {
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Sarah Presence */
.sarah-presence {
    display: flex;
    gap: 24px;
    align-items: center;
}

.avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.avatar-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.presence-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-online {
    color: var(--success);
}

.presence-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.presence-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary-light);
}

/* Health Metrics */
.health-metrics {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-light);
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.health-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Stats List */
.stat-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.stat-item i {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-value {
    font-size: 20px;
    font-weight: 700;
}

.stat-info .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* C-Suite List */
.csuite-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.csuite-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.csuite-member:hover {
    background: var(--bg-hover);
}

.member-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-name {
    font-weight: 600;
    font-size: 14px;
}

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

.member-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
}

.csuite-member.offline .member-status {
    background: var(--text-muted);
}

.csuite-member.offline {
    opacity: 0.6;
}

/* Alerts */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
}

.alert-item.alert-info { border-left: 3px solid var(--info); }
.alert-item.alert-warning { border-left: 3px solid var(--warning); }
.alert-item.alert-success { border-left: 3px solid var(--success); }
.alert-item.alert-error { border-left: 3px solid var(--danger); }

.alert-item i {
    font-size: 18px;
    margin-top: 2px;
}

.alert-item.alert-info i { color: var(--info); }
.alert-item.alert-warning i { color: var(--warning); }
.alert-item.alert-success i { color: var(--success); }
.alert-item.alert-error i { color: var(--danger); }

.alert-content p {
    font-size: 14px;
    margin-bottom: 2px;
}

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

/* Video Center */
.video-center-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Recording Studio */
.recording-studio {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-area {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.preview-area video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 12px;
}

.preview-placeholder i {
    font-size: 48px;
}

.preview-placeholder.hidden {
    display: none;
}

.recording-indicator {
    position: absolute;
    top: 16px;
    left: 16px;
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.9);
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
}

.recording-indicator.active {
    display: flex;
}

.rec-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

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

.recording-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.control-group {
    display: flex;
    gap: 12px;
}

.btn-control {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

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

.btn-control.active {
    background: var(--success);
    color: white;
}

.btn-control.muted {
    background: var(--danger);
    color: white;
}

.main-controls {
    display: flex;
    gap: 16px;
}

.btn-record {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-record:hover {
    border-color: var(--danger);
}

.record-circle {
    width: 16px;
    height: 16px;
    background: var(--danger);
    border-radius: 50%;
}

.btn-stop {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-stop:hover:not(:disabled) {
    border-color: var(--danger);
    background: var(--danger);
}

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

.stop-square {
    width: 16px;
    height: 16px;
    background: var(--danger);
    border-radius: 3px;
}

/* Message Lists */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

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

.message-item.unread {
    border-left-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

.message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    flex: 1;
    min-width: 0;
}

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

.message-from {
    font-weight: 600;
    font-size: 14px;
}

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

.message-preview {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-preview i {
    margin-right: 6px;
    color: var(--primary);
}

.btn-play-message {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.btn-play-message:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.message-status {
    color: var(--success);
    font-size: 12px;
}

/* Playback Area */
/* Subscription Plans */
.subscription-plans {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.plan-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.plan-item.featured {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.plan-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--primary-light);
}

.plan-info p {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plan-price {
    font-weight: bold;
    color: #fff;
    font-size: 1rem;
}

.btn-subscribe {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-subscribe:hover {
    background: var(--primary-dark);
}

.playback-area {
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.playback-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.playback-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
}

.playback-area video,
.playback-area audio {
    width: 100%;
    height: 100%;
}

.playback-controls {
    margin-top: 16px;
}

.playback-controls .progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

.playback-controls .progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.playback-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.btn-icon-small {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.btn-icon-large {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.btn-icon-large:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Systems Monitor */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Process Table */
.process-table-wrapper {
    overflow-x: auto;
}

.process-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.process-table th {
    text-align: left;
    padding: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.process-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.process-row:hover td {
    background: var(--bg-hover);
}

.process-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
}

.process-status.online {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.process-status.offline {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.process-status.restarting {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.btn-refresh {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.btn-refresh.spinning i {
    animation: spin 1s linear infinite;
}

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

/* Resource Gauges */
.resource-gauges {
    display: flex;
    justify-content: space-around;
}

.gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gauge-circle {
    width: 80px;
    height: 80px;
    position: relative;
}

.gauge-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.gauge-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 3;
}

.gauge-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 700;
}

.gauge-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Tutor Grid */
.tutor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tutor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.tutor-card.online {
    border-color: var(--success);
}

.tutor-card.offline {
    border-color: var(--text-muted);
    opacity: 0.6;
}

.tutor-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.tutor-name {
    font-weight: 600;
    font-size: 14px;
}

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

.tutor-status {
    font-size: 11px;
    color: var(--success);
    margin-top: 4px;
}

.tutor-card.offline .tutor-status {
    color: var(--text-muted);
}

/* Network Stats */
.network-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.net-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.net-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.net-value {
    font-weight: 600;
    color: var(--primary-light);
}

/* Logs */
.log-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.log-terminal {
    height: 200px;
    overflow-y: auto;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.log-entry {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.log-time {
    color: var(--text-muted);
    white-space: nowrap;
}

.log-level {
    font-weight: 600;
    min-width: 50px;
}

.log-entry.info .log-level { color: var(--info); }
.log-entry.warn .log-level { color: var(--warning); }
.log-entry.error .log-level { color: var(--danger); }
.log-entry.success .log-level { color: var(--success); }

.log-message {
    color: var(--text-secondary);
}

/* Tasks */
.tasks-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.task-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.task-column {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 16px;
}

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

.column-title {
    font-weight: 600;
    font-size: 14px;
}

.column-count {
    background: var(--bg-card);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-muted);
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px;
    border-left: 3px solid var(--primary);
    cursor: grab;
    transition: var(--transition);
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.task-card.priority-high { border-left-color: var(--danger); }
.task-card.priority-medium { border-left-color: var(--warning); }
.task-card.priority-low { border-left-color: var(--success); }

.task-card.completed {
    border-left-color: var(--text-muted);
    opacity: 0.7;
}

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

.task-priority {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
}

.task-card.priority-high .task-priority { color: var(--danger); }
.task-card.priority-medium .task-priority { color: var(--warning); }
.task-card.priority-low .task-priority { color: var(--success); }

.task-assignee {
    font-size: 11px;
    color: var(--primary-light);
}

.task-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

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

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.task-completed {
    font-size: 11px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-tags {
    display: flex;
    gap: 6px;
}

.tag {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    border-radius: 4px;
}

.task-progress {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-progress .progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin: 0;
}

.task-progress .progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.task-progress span {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 30px;
}

/* Workload */
.workload-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workload-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.workload-info {
    flex: 1;
}

.workload-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.workload-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.workload-fill {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.workload-fill.medium { background: var(--warning); }
.workload-fill.high { background: var(--danger); }

.workload-value {
    font-size: 13px;
    font-weight: 600;
    min-width: 36px;
    text-align: right;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.chart-container {
    height: 200px;
    position: relative;
}

.chart-filter {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
}

.activity-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.activity-stat {
    text-align: center;
}

.activity-stat .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-trend {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.up {
    color: var(--success);
}

.stat-trend.down {
    color: var(--danger);
}

.tutor-legend {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-value {
    margin-left: auto;
    font-weight: 600;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.metric-details {
    display: flex;
    flex-direction: column;
}

.metric-value-large {
    font-size: 22px;
    font-weight: 700;
}

.metric-label-large {
    font-size: 12px;
    color: var(--text-muted);
}

.metric-change {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.metric-change.positive {
    color: var(--success);
}

.metric-change.negative {
    color: var(--danger);
}

/* Chat Layout */
.chat-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    height: calc(100vh - 200px);
}

.chat-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-search {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.chat-search i {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.chat-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
}

.chat-search input::placeholder {
    color: var(--text-muted);
}

.chat-rooms {
    flex: 1;
    overflow-y: auto;
}

.chat-room {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.chat-room:hover,
.chat-room.active {
    background: var(--bg-tertiary);
}

.chat-room.active {
    border-left: 3px solid var(--primary);
}

.room-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    flex-shrink: 0;
}

.room-avatar.group {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.room-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.room-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.room-preview {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-preview i {
    margin-right: 4px;
}

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

.room-badge {
    position: absolute;
    right: 16px;
    bottom: 14px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Main */
.chat-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
}

.chat-header-text h4 {
    font-size: 15px;
    font-weight: 600;
}

.chat-header-text span {
    font-size: 12px;
    color: var(--success);
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

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

.message-date {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin: 8px 0;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 70%;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar .msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.message-content {
    display: flex;
    flex-direction: column;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    max-width: 100%;
}

.message.received .message-bubble {
    background: var(--bg-tertiary);
    border-bottom-left-radius: 4px;
}

.message.sent .message-bubble {
    background: var(--primary);
    border-bottom-right-radius: 4px;
}

.message-bubble p {
    font-size: 14px;
    line-height: 1.5;
}

.message-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.message.sent .message-meta {
    justify-content: flex-end;
}

/* Voice Message */
.voice-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px !important;
}

.btn-play-voice {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
}

.waveform-bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: waveform 1s ease-in-out infinite;
}

.waveform-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.waveform-bar:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { height: 14px; animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.waveform-bar:nth-child(7) { height: 10px; animation-delay: 0.6s; }
.waveform-bar:nth-child(8) { height: 16px; animation-delay: 0.7s; }
.waveform-bar:nth-child(9) { height: 12px; animation-delay: 0.8s; }
.waveform-bar:nth-child(10) { height: 8px; animation-delay: 0.9s; }

@keyframes waveform {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.voice-duration {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Video Message */
.video-message {
    padding: 0 !important;
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-play-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.video-message p {
    padding: 10px 14px;
    font-size: 13px;
}

/* Chat Input */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.btn-attach,
.btn-emoji {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-attach:hover,
.btn-emoji:hover {
    color: var(--primary);
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 14px;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.btn-record-text {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-record-text:hover {
    background: var(--danger);
    color: white;
}

.btn-send {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.btn-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* C-Suite Grid */
.csuite-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.csuite-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.csuite-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.csuite-header {
    position: relative;
    margin-bottom: 16px;
}

.csuite-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto;
}

.csuite-status {
    position: absolute;
    bottom: 0;
    right: calc(50% - 40px);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
}

.csuite-status.online {
    background: var(--success);
}

.csuite-status.offline {
    background: var(--text-muted);
}

.csuite-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.csuite-title {
    display: block;
    font-size: 12px;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.csuite-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.csuite-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.csuite-stat {
    display: flex;
    flex-direction: column;
}

.csuite-stat .stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-light);
}

.csuite-actions {
    display: flex;
    gap: 10px;
}

.btn-csuite {
    flex: 1;
    padding: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

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

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

.modal-content.modal-large {
    max-width: 700px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.btn-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-close:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Recording Modal */
.recording-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recording-preview-modal {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.recording-preview-modal video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recording-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    display: none;
    align-items: center;
    gap: 12px;
    background: rgba(239, 68, 68, 0.9);
    padding: 8px 16px;
    border-radius: 50px;
}

.recording-overlay.active {
    display: flex;
}

.rec-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.rec-indicator .rec-dot {
    animation: blink 1s infinite;
}

.rec-timer {
    font-family: monospace;
    font-size: 16px;
}

.recording-controls-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.btn-record-main {
    width: 70px;
    height: 70px;
    border: 4px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--danger);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: var(--transition);
}

.btn-record-main:hover {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.btn-stop-main {
    width: 70px;
    height: 70px;
    border: 4px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--danger);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: var(--transition);
}

.btn-stop-main:hover:not(:disabled) {
    border-color: var(--danger);
    background: var(--danger);
    color: white;
}

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

.btn-send-recording {
    padding: 12px 24px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-send-recording:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
}

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

/* Responsive Design */
@media (max-width: 1400px) {
    .dashboard-grid,
    .video-center-grid,
    .systems-grid,
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-large,
    .card-wide {
        grid-column: span 2;
    }
    
    .csuite-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
    }
    
    .nav-item span,
    .nav-badge,
    .sidebar-footer {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
        padding: 16px;
    }
    
    .nav-item i {
        width: auto;
        font-size: 20px;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .task-board {
        grid-template-columns: 1fr;
    }
    
    .chat-layout {
        grid-template-columns: 1fr;
    }
    
    .chat-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 16px;
    }
    
    .logo-text {
        display: none;
    }
    
    .status-bar {
        display: none;
    }
    
    .content-area {
        padding: 16px;
    }
    
    .dashboard-grid,
    .video-center-grid,
    .systems-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .card-large,
    .card-wide {
        grid-column: span 1;
    }
    
    .csuite-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .sarah-presence {
        flex-direction: column;
        text-align: center;
    }
    
    .presence-actions {
        flex-direction: column;
    }
    
    .resource-gauges {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

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

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

/* Interactive Video Interface Styles */
.sarah-interactive-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

#sarah-interactive-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interactive-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    z-index: 10;
}

.interactive-overlay h2 {
    font-size: 24px;
    margin: 20px 0 10px;
    font-weight: 700;
}

.interactive-overlay p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.interactive-ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 20%, rgba(0,0,0,0.8) 100%);
}

.interactive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.interactive-chat {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.chat-bubble.sarah {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.user {
    background: #667eea;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Typing dots animation */
.typing-dots span {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #667eea;
    margin: 0 2px;
    animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

.interactive-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

#interactive-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 12px 16px;
    color: #fff;
    outline: none;
}

#interactive-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mic-status {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.mic-status.listening {
    background: #E74C3C;
    animation: pulse 1.5s infinite;
}
