/* MeetingMate AI - Main Stylesheet */

:root {
    /* Dark Theme Colors - Matching Screenshot */
    --primary-color: #00C6FF;
    --primary-dark: #0072FF;
    --secondary-color: #00C6FF;
    --accent-color: #FF8C00;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Dark Background Colors */
    --bg-primary: #1A1E2C;
    --bg-secondary: #232738;
    --bg-tertiary: #2A2F42;
    --bg-sidebar: #1E2330;
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #6B7280;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    --gradient-secondary: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    --gradient-dark: linear-gradient(135deg, #1A1E2C 0%, #232738 100%);
    
    /* Legacy Gray Colors (for compatibility) */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    
    /* Enhanced Shadows for Dark Theme */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Page Styles */
.login-body {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.login-header h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
    background: var(--bg-secondary);
}

.login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: var(--text-secondary);
}

.login-footer p {
    margin-bottom: 4px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 52px;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info span {
    font-weight: 500;
    color: var(--text-secondary);
}

.sidebar-menu {
    list-style: none;
    padding: 16px 0;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s;
    gap: 12px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.menu-item.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.menu-item .icon {
    font-size: 18px;
}

/* Main Content */
.main-content {
    flex: 1;
    background: var(--bg-primary);
    padding: 32px;
    overflow-y: auto;
    position: relative;
}

.main-header {
    position: absolute;
    top: 32px;
    right: 32px;
    left: 32px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 600px;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
    background: var(--bg-tertiary);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(10px);
}

.search-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-suggestion:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.search-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
}

.settings-btn {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.settings-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Dashboard Styles */
.dashboard-content {
    display: grid;
    gap: 32px;
}

.meeting-controls {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 40px;
}

.meeting-status {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.recording {
    background-color: var(--danger-color);
}

.status-dot.sharing {
    background-color: var(--success-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.transcript-container,
.ai-response-container {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.transcript-container h3,
.ai-response-container h3 {
    margin-bottom: 16px;
    color: var(--gray-800);
}

.transcript-box,
.ai-response-box {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background-color: var(--gray-50);
    margin-bottom: 16px;
}

.transcript-box .placeholder {
    color: var(--gray-400);
    font-style: italic;
}

.transcript-actions {
    display: flex;
    gap: 12px;
}

/* Sessions Styles */
.sessions-list {
    display: grid;
    gap: 16px;
}

.session-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.session-card h4 {
    color: var(--gray-800);
    margin-bottom: 8px;
}

.session-card .session-meta {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 12px;
}

.session-card .session-content {
    color: var(--gray-700);
    line-height: 1.5;
}

/* Screen Share Styles */
.screen-share-content {
    display: grid;
    gap: 24px;
}

.screen-controls {
    text-align: center;
    padding: 32px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.screen-preview {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.screen-preview video {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Screen Share Transcript Styles */
.screen-transcript {
    margin-top: 20px;
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.screen-transcript h4 {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
}

.screen-transcript .transcript-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.screen-transcript .final-transcript {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.screen-transcript .interim-transcript {
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    opacity: 0.8;
}

/* Completion Status Styles */
.completion-status {
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid rgba(0, 198, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 198, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.status-icon {
    font-size: 16px;
}

.status-text {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 14px;
}

.status-description {
    color: var(--text-secondary);
    font-size: 13px;
    opacity: 0.9;
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 100%; /* Set to 100% */
}

.progress-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.screen-status {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Documents Styles */
.documents-content {
    display: grid;
    gap: 24px;
}

.upload-section {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.documents-list {
    display: grid;
    gap: 16px;
}

.document-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.document-info h4 {
    color: var(--gray-800);
    margin-bottom: 4px;
}

.document-info p {
    color: var(--gray-600);
    font-size: 14px;
}

/* Audio Check Styles */
.audio-check-content {
    display: grid;
    gap: 24px;
}

.audio-controls {
    text-align: center;
    padding: 32px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.audio-visualizer {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.audio-visualizer canvas {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
}

.audio-status {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

/* Help Styles */
.help-content {
    display: grid;
    gap: 32px;
}

.help-section {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.help-section h3 {
    color: var(--gray-800);
    margin-bottom: 16px;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.shortcut-item kbd {
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    text-align: center;
}

.shortcut-item span {
    color: var(--gray-700);
    font-weight: 500;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--gray-600);
}

.faq-item kbd {
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    border-radius: 3px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
}

.help-section ul {
    margin-left: 20px;
    color: var(--gray-600);
}

.help-section li {
    margin-bottom: 4px;
}

/* Backup & Restore Styles */
.backup-content {
    display: grid;
    gap: 32px;
}

.backup-section {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.backup-section h3 {
    color: var(--gray-800);
    margin-bottom: 16px;
}

.backup-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.import-section {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.import-status {
    background: var(--gray-50);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.import-status p {
    margin: 0;
    color: var(--gray-700);
}

.backup-info {
    background: var(--gray-50);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.backup-info p {
    margin-bottom: 12px;
    color: var(--gray-700);
}

.backup-info ul {
    margin-left: 20px;
    color: var(--gray-600);
}

.backup-info li {
    margin-bottom: 4px;
}

/* Health Monitoring Styles */
.health-dashboard {
    display: grid;
    gap: 24px;
}

.health-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.health-score {
    display: flex;
    align-items: center;
    gap: 16px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.score-number {
    font-size: 1.5rem;
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.health-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.health-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.health-component {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.health-component h4 {
    color: var(--gray-800);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.component-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.component-status .status-text {
    font-weight: 500;
    font-size: 0.9rem;
}

.component-details {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.component-details p {
    margin: 4px 0;
}

.health-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.status-dot.healthy {
    background-color: var(--success-color);
}

.status-dot.warning {
    background-color: var(--warning-color);
}

.status-dot.critical {
    background-color: var(--danger-color);
}

.performance-metrics {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 16px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Search Results Styles */
.search-results-content {
    display: grid;
    gap: 24px;
}

.search-filters-panel {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.filter-group {
    margin-bottom: 12px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-group input[type="date"],
.filter-group input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
}

.filter-group input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results-list {
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.search-result-item {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.search-result-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.search-result-content {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 8px;
}

.search-result-highlight {
    background: rgba(0, 198, 255, 0.2);
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 500;
}

.search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#pageInfo {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Analytics Styles */
.analytics-content {
    display: grid;
    gap: 24px;
}

.analytics-filters {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-weight: 500;
    color: var(--gray-700);
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    background: var(--white);
    color: var(--gray-700);
}

.analytics-dashboard {
    display: grid;
    gap: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid var(--primary-color);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.analytics-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.chart-container {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.chart-container h3 {
    color: var(--gray-800);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.chart-placeholder {
    text-align: center;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 8px;
    border: 2px dashed var(--gray-300);
}

.chart-placeholder canvas {
    max-width: 100%;
    height: auto;
}

.analytics-tables {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.table-wrapper {
    overflow-x: auto;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.table-wrapper th,
.table-wrapper td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table-wrapper th {
    background-color: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.table-wrapper tr:hover {
    background-color: var(--gray-50);
}

/* Admin Panel Styles */
.admin-content {
    display: grid;
    gap: 24px;
}

.admin-tabs {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.tab-btn:hover:not(.active) {
    background-color: var(--gray-50);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-section {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.admin-section h3 {
    margin-bottom: 20px;
    color: var(--gray-800);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background-color: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

tr:hover {
    background-color: var(--gray-50);
}

.settings-form {
    max-width: 400px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 500;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background-color: var(--success-color);
}

.toast.error {
    background-color: var(--danger-color);
}

.toast.warning {
    background-color: var(--warning-color);
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.notification {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--gray-300);
    overflow: hidden;
    transform: translateX(420px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 100%;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(420px);
    opacity: 0;
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-error {
    border-left-color: var(--danger-color);
}

.notification-warning {
    border-left-color: var(--warning-color);
}

.notification-info {
    border-left-color: var(--secondary-color);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
}

.notification-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.notification-body {
    padding: 0 20px 16px;
}

.notification-message {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.notification-time {
    color: var(--gray-400);
    font-size: 0.8rem;
}

.notification-progress {
    height: 3px;
    background: var(--gray-200);
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 100%;
    transform: translateX(-100%);
}

@keyframes notification-progress {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Notification Bell Icon */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-bell:hover {
    background: var(--gray-100);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 8px 0;
    }
    
    .menu-item {
        white-space: nowrap;
        padding: 8px 16px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .meeting-controls {
        padding: 24px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .transcript-box,
    .ai-response-box {
        min-height: 150px;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid var(--gray-200);
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 12px;
    }
    
    .transcript-actions {
        flex-direction: column;
    }
    
    .document-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Export Styles */
.sessions-actions {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
}

.export-section {
    margin-bottom: 20px;
}

.export-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.export-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.export-filters {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.export-filters h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.filter-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-row .filter-group {
    margin-bottom: 0;
}

.filter-row .filter-group label {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.filter-row .filter-group input[type="date"] {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
}

.filter-row .filter-group input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.export-actions {
    margin-left: auto;
}

.export-actions .btn {
    font-size: 14px;
    padding: 8px 16px;
}

/* Settings Styles */
.settings-content {
    display: grid;
    gap: 24px;
}

.settings-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.settings-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.settings-tab.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.settings-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.settings-panel {
    display: none;
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.settings-panel.active {
    display: block;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.theme-option {
    background: var(--bg-tertiary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.theme-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.theme-option.selected {
    border-color: var(--primary-color);
    background: rgba(0, 198, 255, 0.1);
}

.theme-preview {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-preview {
    background: linear-gradient(135deg, #1A1E2C 0%, #232738 100%);
}

.light-preview {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.auto-preview {
    background: linear-gradient(135deg, #1A1E2C 0%, #ffffff 100%);
}

.theme-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.theme-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group select,
.form-group input[type="range"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input[type="range"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

.form-group input[type="range"] {
    padding: 0;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
}

.form-group p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
    margin-bottom: 0;
}

.notification-options {
    display: grid;
    gap: 16px;
}

.notification-option {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 4px;
}

.notification-option input[type="checkbox"] {
    margin: 0;
    accent-color: var(--primary-color);
}

.notification-option p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    margin-left: 32px;
}

.settings-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-actions .btn {
    min-width: 140px;
}

#retentionValue {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 8px;
}

/* Collaboration Styles */
.collaboration-content {
    display: grid;
    gap: 24px;
}

.collaboration-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.create-room-section,
.join-room-section {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.create-room-section h3,
.join-room-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.create-room-form,
.join-room-form {
    display: grid;
    gap: 16px;
}

.create-room-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.active-rooms-section {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.active-rooms-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.rooms-list {
    display: grid;
    gap: 12px;
}

.room-card {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.room-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.room-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.room-card-code {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.room-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Collaboration Room Styles */
.room-header {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-info h1 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.room-info p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.room-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.room-actions {
    display: flex;
    gap: 12px;
}

.room-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

.room-sidebar {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.participants-section,
.room-controls {
    margin-bottom: 24px;
}

.participants-section:last-child,
.room-controls:last-child {
    margin-bottom: 0;
}

.participants-section h3,
.room-controls h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.participants-list {
    display: grid;
    gap: 8px;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.participant-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.participant-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
}

.control-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.room-main {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.chat-section,
.session-section {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.chat-header,
.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3,
.session-header h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-message-user {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.chat-message-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chat-message-content {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-message.system {
    background: rgba(0, 198, 255, 0.1);
    border-color: var(--primary-color);
}

.chat-input {
    display: flex;
    gap: 8px;
}

.chat-input input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

.live-transcript {
    flex: 1;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
    min-height: 200px;
    overflow-y: auto;
}

.live-transcript p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.session-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .collaboration-actions {
        grid-template-columns: 1fr;
    }
    
    .room-content {
        grid-template-columns: 1fr;
    }
    
    .room-sidebar {
        order: 2;
    }
    
    .room-main {
        order: 1;
        grid-template-rows: auto auto;
    }
    
    .room-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .room-actions {
        justify-content: center;
    }
}

/* AI Customization Styles */
.ai-customization-content {
    display: grid;
    gap: 24px;
}

.ai-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.ai-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.ai-tab.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.ai-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.ai-tab-content {
    display: none;
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.ai-tab-content.active {
    display: block;
}

.ai-profile-section {
    margin-bottom: 32px;
}

.ai-profile-section:last-child {
    margin-bottom: 0;
}

.ai-profile-section h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.profile-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.profile-group select {
    padding: 10px 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.profile-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

.expertise-tags {
    display: grid;
    gap: 16px;
}

.tag-input {
    display: flex;
    gap: 8px;
}

.tag-input input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-tag {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expertise-tag .remove-tag {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-profile-section textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

.ai-profile-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

.feature-toggles {
    display: grid;
    gap: 16px;
}

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toggle-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.toggle-group input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 48px;
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--text-muted);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-group input[type="checkbox"]:checked + .toggle-slider {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

.toggle-group input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
    background: var(--text-primary);
}

.toggle-group p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    margin-left: 60px;
}

.advanced-settings {
    display: grid;
    gap: 20px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.setting-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.setting-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
}

.setting-group span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.ai-profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.templates-header,
.insights-header,
.learning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.templates-header h3,
.insights-header h3,
.learning-header h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.templates-list {
    display: grid;
    gap: 16px;
}

.template-card {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.template-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.template-category {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.template-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.template-prompt {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.template-actions {
    display: flex;
    gap: 8px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.insight-card {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.insight-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.chart-container {
    height: 200px;
    position: relative;
}

.stats-container {
    display: grid;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.learning-history {
    display: grid;
    gap: 12px;
}

.learning-item {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.learning-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.learning-type {
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.learning-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.learning-content {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-tabs {
        flex-direction: column;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-profile-actions {
        flex-direction: column;
    }
    
    .templates-header,
    .insights-header,
    .learning-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
}

/* Screen Share Only Interface Styles */
.screen-share-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.screen-controls {
    text-align: center;
    margin-bottom: 30px;
}

.screen-preview {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.screen-preview video {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

.audio-status {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.status-dot.recording {
    background: #ef4444;
}

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

.audio-to-text {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-to-text h3 {
    color: var(--text-primary);
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.transcript-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 120px;
}

.live-transcript {
    font-size: 16px;
    line-height: 1.6;
}

.final-text {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.interim-text {
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

.ai-chat-flow {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-flow h3 {
    color: var(--text-primary);
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-message {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    max-width: 80%;
}

.chat-message.user {
    background: rgba(0, 198, 255, 0.2);
    margin-left: auto;
    border: 1px solid rgba(0, 198, 255, 0.3);
}

.chat-message.ai {
    background: rgba(255, 255, 255, 0.1);
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-content {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
}

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

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.chat-input .btn {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .screen-share-container {
        padding: 16px;
    }
    
    .chat-message {
        max-width: 90%;
    }
    
    .chat-container {
        height: 300px;
    }
}
