/**
 * Meeting Details View CSS
 * Styling for the meeting details view following Anthropic minimal design
 */

/* Meeting Details Container */
.meeting-details-container {
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.04);
    overflow: hidden;
}

/* Details Header */
.details-header {
    position: relative;
    padding: 1.5rem;
    background: var(--color-surface);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Status badge - positioned at top right edge, half in half out */
.meeting-status-badge {
    position: absolute;
    top: 0;
    right: 24px;
    transform: translateY(-50%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meeting-status-badge.scheduled {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.meeting-status-badge.active {
    background-color: #dcfce7;
    color: #16a34a;
}

.meeting-status-badge.ended {
    background-color: #f3f4f6;
    color: #6b7280;
}

.meeting-status-badge.cancelled {
    background-color: #fee2e2;
    color: #dc2626;
}

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

.header-content h2 {
    margin: 0 0 0.25rem 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.meeting-subheadings {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.meeting-subheadings i {
    margin-right: 6px;
    color: #9ca3af;
}

.meeting-datetime,
.meeting-duration,
.meeting-type-info {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.meeting-datetime i,
.meeting-duration i,
.meeting-type-info i {
    display: inline-block;
    flex-shrink: 0;
}

.meeting-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meeting-status {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meeting-status.scheduled {
    background-color: #f0f9ff;
    color: #0969da;
}

.meeting-status.active {
    background-color: #f0fdf4;
    color: #1a7f37;
}

.meeting-status.ended {
    background-color: #f1f3f5;
    color: var(--color-text-secondary);
}

.meeting-status.cancelled {
    background-color: #fef2f2;
    color: #cf222e;
}

.meeting-type {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    background-color: #f1f3f5;
    color: var(--color-text-secondary);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Icon-only rounded buttons */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
}

.btn-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-icon-secondary {
    background: var(--color-surface);
    border-color: #d1d5db;
    color: var(--color-text-primary);
}

.btn-icon-secondary:hover {
    background: var(--color-surface-subtle);
    border-color: #9ca3af;
}

.btn-icon-primary {
    background: #0d0d0d;
    border-color: #0d0d0d;
    color: #ffffff;
}

.btn-icon-primary:hover {
    background: #262626;
    border-color: #262626;
}

.btn-icon-success {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.btn-icon-success:hover {
    background: #15803d;
    border-color: #15803d;
}

.btn-icon-danger {
    background: var(--color-surface);
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-icon-danger:hover {
    background: #fef2f2;
    border-color: #f87171;
}

/* Details Body */
.details-body {
    padding: 1rem 1.5rem;
}

.detail-section {
    margin-bottom: 1rem;
}

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

.detail-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.detail-item label {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-value code {
    background: var(--color-surface-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: var(--color-text-primary);
}

.detail-meta {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.type-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background-color: #f1f3f5;
    color: var(--color-text-secondary);
}

/* Description Text */
.description-text {
    margin: 0;
    line-height: 1.6;
    color: var(--color-text-primary);
    font-size: 14px;
}

/* Meeting Link Box */
.meeting-link-box {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.meeting-link-box .form-control {
    flex: 1;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
}

/* Participants Grid */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.participant-card {
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    transition: all 0.15s ease;
}

.participant-card:hover {
    background: var(--color-surface-subtle);
    border-color: #8b949e;
}

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

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

.participant-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.participant-email {
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-role {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b949e;
}

/* Resend Invite Button */
.btn-resend-invite {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-secondary);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-resend-invite:hover {
    background: #f6f8fa;
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
}

.btn-resend-invite:active {
    background: #eaeef2;
}

.btn-resend-invite:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-resend-invite i {
    font-size: 10px;
}

.btn-resend-invite.btn-success {
    background: #dafbe1;
    border-color: #1a7f37;
    color: #1a7f37;
}

.btn-resend-invite.btn-error {
    background: #ffebe9;
    border-color: #cf222e;
    color: #cf222e;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.setting-item i {
    font-size: 14px;
}

.setting-item i.text-success {
    color: #1a7f37;
}

.setting-item i.text-muted {
    color: #8b949e;
}

/* No Data Message */
.no-data-message {
    margin: 0;
    padding: 2rem;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 13px;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

/* Meeting Notes Summary Preview */
.meeting-notes-summary-preview {
    padding: 1rem;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.meeting-notes-summary-preview .summary-overview {
    margin: 0;
}

.meeting-notes-summary-preview .summary-overview p {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 13px;
    line-height: 1.6;
}

.meeting-notes-summary-preview .summary-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.meeting-notes-summary-preview .summary-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.meeting-notes-summary-preview .summary-stat i {
    color: var(--primary-color, #152C4A);
    font-size: 11px;
}

/* Button Icon */
.btn-icon {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--color-surface-subtle);
    color: var(--color-text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .details-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions button {
        flex: 1;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .participants-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .meeting-link-box {
        flex-direction: column;
    }
}

/* ==================== Meeting Notes Section ==================== */

.meeting-notes-content {
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.notes-loading {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 13px;
}

.notes-loading i {
    margin-right: 0.5rem;
}

.notes-metadata {
    background: var(--color-surface-subtle);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.notes-meta-item {
    font-size: 12px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.notes-meta-item i {
    font-size: 11px;
    color: #8b949e;
}

.notes-transcript-list {
    max-height: 400px;
    overflow-y: auto;
}

.transcript-entry {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s ease;
}

.transcript-entry:last-child {
    border-bottom: none;
}

.transcript-entry:hover {
    background: var(--color-surface);
}

.transcript-speaker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

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

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

.transcript-time {
    font-size: 11px;
    color: #8b949e;
    margin-left: auto;
}

.transcript-text {
    font-size: 13px;
    color: var(--color-text-primary);
    line-height: 1.5;
    padding-left: 32px;
}

/* Notes section icon in header */
.detail-section h4 i {
    margin-right: 0.5rem;
    color: var(--color-text-secondary);
}

/* Responsive for notes */
@media (max-width: 768px) {
    .notes-metadata {
        flex-direction: column;
        gap: 0.5rem;
    }

    .notes-transcript-list {
        max-height: 300px;
    }

    .transcript-text {
        padding-left: 0;
        margin-top: 0.5rem;
    }
}

/* ==================== AI Meeting Notes Summarization ==================== */

/* Notes Header Actions */
.notes-header-actions {
    background: var(--color-surface-subtle);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* AI Summarize Button */
.btn-ai-summarize {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4F7A 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn-ai-summarize:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-ai-summarize:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-ai-summarize i {
    font-size: 14px;
}

/* AI Summary Container */
.ai-summary-container {
    margin: 1rem;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

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

/* AI Summary Header */
.ai-summary-header {
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4F7A 100%);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-summary-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.ai-summary-title i {
    font-size: 16px;
}

.btn-close-summary {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-close-summary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* AI Summary Content */
.ai-summary-content {
    padding: 1rem;
}

/* AI Thinking State */
.ai-thinking-state {
    text-align: center;
    padding: 2rem 1rem;
}

.ai-thinking-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-thinking-animation i {
    font-size: 32px;
    color: #1E3A5F;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.thinking-dots {
    display: flex;
    gap: 4px;
}

.thinking-dots span {
    width: 8px;
    height: 8px;
    background: #1E3A5F;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.thinking-dots span:nth-child(1) { animation-delay: 0s; }
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
}

.ai-thinking-state p {
    color: #1E3A5F;
    font-size: 13px;
    margin: 0;
}

/* AI Error State */
.ai-error-state {
    text-align: center;
    padding: 1.5rem;
    color: #dc2626;
}

.ai-error-state i {
    font-size: 32px;
    margin-bottom: 0.75rem;
}

.ai-error-state p {
    font-size: 13px;
    margin: 0 0 1rem 0;
}

.btn-retry {
    padding: 0.5rem 1rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-retry:hover {
    background: #b91c1c;
}

/* AI Summary Sections */
.ai-summary-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e7ff;
}

.ai-summary-section:last-of-type {
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
}

.ai-summary-section h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    font-size: 13px;
    font-weight: 600;
    color: #4338ca;
}

.ai-summary-section h5 i {
    font-size: 14px;
    color: #1E3A5F;
}

.ai-summary-section p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-primary);
}

.ai-summary-section ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.ai-summary-section li {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-primary);
    margin-bottom: 0.35rem;
}

.ai-summary-section li:last-child {
    margin-bottom: 0;
}

.ai-summary-section .empty-list {
    font-style: italic;
    color: #64748b;
}

/* Summary Section Specific Colors */
.summary-executive h5 { color: #0369a1; }
.summary-executive h5 i { color: #0ea5e9; }

.summary-keypoints h5 { color: #059669; }
.summary-keypoints h5 i { color: #10b981; }

.summary-actions h5 { color: #d97706; }
.summary-actions h5 i { color: #f59e0b; }

.summary-decisions h5 { color: #152C4A; }
.summary-decisions h5 i { color: #2A4F7A; }

/* AI Summary Footer */
.ai-summary-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e7ff;
    flex-wrap: wrap;
}

.ai-model-badge,
.ai-generated-time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11px;
    color: #64748b;
}

.ai-model-badge i,
.ai-generated-time i {
    font-size: 10px;
    color: #94a3b8;
}

/* AI Summary Footer with Send Button */
.ai-summary-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e7ff;
    flex-wrap: wrap;
}

.ai-summary-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Send Summary Button */
.btn-send-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-send-summary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-send-summary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==================== Send Summary Modal ==================== */

.send-summary-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.send-summary-modal-overlay.closing {
    animation: fadeOut 0.2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.send-summary-modal {
    background: var(--color-surface);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

.send-summary-modal-overlay.closing .send-summary-modal {
    animation: slideDown 0.2s ease forwards;
}

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

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

.send-summary-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.send-summary-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.send-summary-modal-header h3 i {
    color: #10b981;
}

.send-summary-modal-header .modal-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.send-summary-modal-header .modal-close-btn:hover {
    background: #e2e8f0;
    color: var(--color-text-primary);
}

.send-summary-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-description {
    margin: 0 0 1rem 0;
    color: #64748b;
    font-size: 14px;
}

.select-all-container {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.select-all-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.select-all-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #1E3A5F;
}

.participant-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.participant-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-surface-subtle);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.participant-checkbox-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.participant-checkbox-item.added {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.participant-checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: #1E3A5F;
    flex-shrink: 0;
}

.participant-checkbox-item .participant-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4F7A 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.participant-checkbox-item .participant-info {
    flex: 1;
    min-width: 0;
}

.participant-checkbox-item .participant-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-checkbox-item .participant-email {
    display: block;
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.participant-badge.host {
    background: #dbeafe;
    color: #1d4ed8;
}

.participant-badge.added {
    background: #dcfce7;
    color: #16a34a;
}

.no-participants-message {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.no-participants-message i {
    font-size: 32px;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.no-participants-message p {
    margin: 0 0 0.5rem 0;
    font-size: 14px;
}

.no-participants-message .hint {
    font-size: 12px;
    color: #94a3b8;
}

.add-email-section {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.add-email-section label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

.add-email-row {
    display: flex;
    gap: 0.5rem;
}

.add-email-row input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.add-email-row input:focus {
    outline: none;
    border-color: #1E3A5F;
}

.btn-add-email {
    padding: 0 0.875rem;
    background: #1E3A5F;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-email:hover {
    background: #4f46e5;
}

.send-summary-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-subtle);
    border-radius: 0 0 16px 16px;
}

.send-summary-modal-footer .btn-cancel {
    padding: 0.625rem 1.25rem;
    background: var(--color-surface);
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.send-summary-modal-footer .btn-cancel:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.send-summary-modal-footer .btn-send {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.send-summary-modal-footer .btn-send:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.send-summary-modal-footer .btn-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive for AI Summary */
@media (max-width: 768px) {
    .notes-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-ai-summarize {
        width: 100%;
        justify-content: center;
    }

    .ai-summary-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .ai-summary-meta {
        justify-content: center;
    }

    .btn-send-summary {
        width: 100%;
        justify-content: center;
    }

    .send-summary-modal {
        width: 95%;
        max-height: 90vh;
    }
}

/* ===========================================
   Section Header with Action Button
   =========================================== */

.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header-with-action h4 {
    margin: 0;
}

/* View Full Notes Button */
.btn-view-full-notes {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4F7A 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn-view-full-notes:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.btn-view-full-notes:active {
    transform: translateY(0);
}

.btn-view-full-notes i {
    font-size: 12px;
}

/* Dark mode support */
[data-theme="dark"] .btn-view-full-notes {
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .btn-view-full-notes:hover {
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.5);
}

/* ==================== Cancel Meeting Modal ==================== */

#cancelMeetingModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cancel-meeting-modal {
    background: var(--color-surface);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 450px;
    width: 90%;
    animation: slideUp 0.2s ease;
}

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

.cancel-meeting-modal .modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cancel-meeting-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cancel-meeting-modal .modal-close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.15s;
}

.cancel-meeting-modal .modal-close-btn:hover {
    background: #f3f4f6;
    color: var(--color-text-primary);
}

.cancel-meeting-modal .modal-body {
    padding: 1.5rem;
}

.cancel-meeting-modal .form-group {
    margin-bottom: 0;
}

.cancel-meeting-modal .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.cancel-meeting-modal .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cancel-meeting-modal .form-control:focus {
    outline: none;
    border-color: #1E3A5F;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cancel-meeting-modal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.cancel-meeting-modal .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.cancel-meeting-modal .btn-outline-secondary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.cancel-meeting-modal .btn-outline-secondary:hover {
    background: var(--color-surface-subtle);
    border-color: #9ca3af;
}

.cancel-meeting-modal .btn-danger {
    background: #dc3545;
    border: none;
    color: #ffffff;
}

.cancel-meeting-modal .btn-danger:hover {
    background: #c82333;
}

.cancel-meeting-modal .btn-danger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
