/**
 * Resumidor Meet - Modern Dashboard Styles
 * Brand Colors: Blue #20409a, Green #4db848, Yellow #ffcb31
 */

:root {
    --primary-blue: #20409a;
    --primary-green: #4db848;
    --primary-yellow: #ffcb31;
    --dark: #1a1a2e;
    --dark-light: #252541;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    color: var(--gray-800);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--primary-blue);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 0.9rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-yellow);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.admin-badge {
    background: var(--primary-yellow);
    color: var(--dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

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

.btn-primary:hover {
    background: #45a340;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

/* ============================================
   LAYOUT
   ============================================ */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.page-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.meeting-count {
    background: var(--primary-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   FILTERS
   ============================================ */
.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 10px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    min-width: 200px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(32, 64, 154, 0.1);
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue { background: rgba(32, 64, 154, 0.1); color: var(--primary-blue); }
.stat-icon.green { background: rgba(77, 184, 72, 0.1); color: var(--primary-green); }
.stat-icon.yellow { background: rgba(255, 203, 49, 0.2); color: #c99a00; }

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 2px;
}

/* ============================================
   MEETING CARDS
   ============================================ */
.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meeting-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.meeting-card:hover {
    box-shadow: var(--shadow-lg);
}

.meeting-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-left: 4px solid var(--primary-blue);
    transition: var(--transition);
}

.meeting-header:hover {
    background: var(--gray-100);
}

.meeting-header.expanded {
    border-left-color: var(--primary-green);
}

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

.meeting-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.meeting-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.meeting-title-input {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    border: 2px solid var(--primary-blue);
    border-radius: 6px;
    padding: 8px 12px;
    background: var(--white);
    flex: 1;
    max-width: 400px;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 0 rgba(32, 64, 154, 0.1);
}

.meeting-title-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 8px rgba(32, 64, 154, 0.2);
}

.meeting-title-input:invalid {
    border-color: #ef4444;
}

/* Save button styling */
.save-btn {
    background: linear-gradient(135deg, var(--primary-green), #059669);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.save-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(77, 184, 72, 0.3);
}

.save-btn:active {
    transform: scale(0.95);
}

.platform-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.platform-meet { background: rgba(77, 184, 72, 0.15); color: #2d8a28; }
.platform-zoom { background: rgba(32, 64, 154, 0.15); color: var(--primary-blue); }
.platform-teams { background: rgba(115, 79, 198, 0.15); color: #734fc6; }

.meeting-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.meeting-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meeting-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.action-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 64, 154, 0.2);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(32, 64, 154, 0.1);
}

.action-btn.save-btn {
    background: linear-gradient(135deg, var(--primary-green), #059669);
    color: var(--white);
}

.action-btn.save-btn:hover {
    background: linear-gradient(135deg, #45a340, #047857);
    box-shadow: 0 4px 12px rgba(77, 184, 72, 0.3);
}

.expand-icon {
    font-size: 1.5rem;
    color: var(--gray-500);
    transition: transform 0.3s ease;
}

.meeting-header.expanded .expand-icon {
    transform: rotate(180deg);
}

/* ============================================
   MEETING CONTENT
   ============================================ */
.meeting-content {
    display: none;
    border-top: 1px solid var(--gray-200);
}

.meeting-content.show {
    display: block;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 1.5rem;
    background: var(--gray-100);
}

.tab {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab:hover {
    color: var(--primary-blue);
}

.tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

/* ============================================
   SUMMARY SECTIONS
   ============================================ */
.summary-section {
    margin-bottom: 1.5rem;
}

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

.summary-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-section h4 i {
    color: var(--primary-blue);
}

.summary-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-700);
    text-align: justify;
    text-align-last: left;
}

.summary-text p {
    margin-bottom: 1rem;
}

.summary-text p:last-child {
    margin-bottom: 0;
}

.summary-text strong {
    color: var(--gray-800);
    font-weight: 600;
}

.summary-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.summary-list li i {
    color: var(--primary-green);
    margin-top: 2px;
}

.stats-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--gray-700);
}

.stat-badge i {
    color: var(--primary-yellow);
}

/* ============================================
   TRANSCRIPT STYLES
   ============================================ */
.transcript-container {
    max-height: 500px;
    overflow-y: auto;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

/* Day Group */
.transcript-day-group {
    margin-bottom: 1.5rem;
}

.transcript-day-group:last-child {
    margin-bottom: 0;
}

.transcript-day-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.transcript-day-header i {
    font-size: 1rem;
}

.transcript-messages {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--white);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    border: 1px solid var(--gray-200);
    border-top: none;
}

.transcript-message {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    align-items: flex-start;
}

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

.transcript-time {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.75rem;
    color: var(--primary-blue);
    background: rgba(32, 64, 154, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    min-width: 50px;
    text-align: center;
}

.transcript-speaker {
    font-weight: 600;
    color: var(--primary-green);
    min-width: 120px;
    font-size: 0.85rem;
}

.transcript-text {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.5;
    flex: 1;
}

/* Legacy single line format (fallback) */
.transcript-line {
    display: flex;
    gap: 12px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--gray-200);
}

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

.transcript-actions {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

/* ============================================
   NOTES
   ============================================ */
.notes-section {
    padding: 1.5rem;
    background: rgba(255, 203, 49, 0.1);
    border-top: 1px solid var(--gray-200);
}

.notes-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-section h4 i {
    color: var(--primary-yellow);
}

.notes-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: var(--white);
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 203, 49, 0.2);
}

/* Feedback visual quando anotação é salva */
.notes-textarea.saved {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(77, 184, 72, 0.2);
    animation: saveGlow 0.5s ease;
}

@keyframes saveGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(77, 184, 72, 0.4);
    }
    50% {
        box-shadow: 0 0 12px rgba(77, 184, 72, 0.3);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(77, 184, 72, 0.2);
    }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a {
    background: var(--white);
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
}

.pagination a:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.pagination .current {
    background: var(--primary-blue);
    color: var(--white);
}

.pagination .disabled {
    background: var(--gray-200);
    color: var(--gray-400);
    cursor: not-allowed;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
}

.empty-state.inline {
    padding: 2rem;
    box-shadow: none;
}

.empty-state.inline i {
    font-size: 2rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--dark);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--dark);
    color: var(--white);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    animation: slideIn 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
    max-width: 400px;
}

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    animation: progressBar 4s linear;
}

.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-left-color: #34d399;
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-left-color: #fca5a5;
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-left-color: #60a5fa;
}

.toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-left-color: #fbbf24;
}

.toast:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes progressBar {
    from {
        width: 100%;
        opacity: 1;
    }
    to {
        width: 0%;
        opacity: 0;
    }
}

/* Responsive toast */
@media (max-width: 640px) {
    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        max-width: none;
    }
}

/* ============================================
   FILTERS PANEL
   ============================================ */
.filters-panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.filters-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input {
    padding: 10px 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background: var(--white);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(32, 64, 154, 0.1);
}

/* ============================================
   DATE GROUPING
   ============================================ */
.meetings-by-date {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.date-group {
    border-radius: var(--radius);
    overflow: hidden;
}

.date-group-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2d6f 100%);
    padding: 1.25rem 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.date-group-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-group-info i {
    font-size: 1.25rem;
}

.date-display {
    font-size: 1rem;
    font-weight: 600;
}

.meeting-count-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.meetings-in-date {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ============================================
   QUICK STATS
   ============================================ */
.quick-stats {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-label i {
    color: var(--primary-blue);
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    padding: 4px 12px;
    background: var(--white);
    border-radius: 6px;
}

.stat-value.sentiment-positive {
    background: rgba(77, 184, 72, 0.15);
    color: #2d8a28;
}

.stat-value.sentiment-negative {
    background: rgba(220, 53, 69, 0.15);
    color: #c71a1a;
}

.stat-value.sentiment-neutral {
    background: rgba(173, 181, 189, 0.15);
    color: #6c757d;
}

.stat-value.sentiment-mixed {
    background: rgba(255, 203, 49, 0.2);
    color: #c99a00;
}

.stat-value.energy-very-high {
    background: rgba(77, 184, 72, 0.15);
    color: #2d8a28;
}

.stat-value.energy-high {
    background: rgba(77, 184, 72, 0.1);
    color: #4db848;
}

.stat-value.energy-medium {
    background: rgba(255, 203, 49, 0.15);
    color: #c99a00;
}

.stat-value.energy-low {
    background: rgba(220, 53, 69, 0.15);
    color: #c71a1a;
}

/* ============================================
   HIGHLIGHT SECTION
   ============================================ */

.highlight-box {
    background: linear-gradient(135deg, rgba(255, 203, 49, 0.15) 0%, rgba(255, 203, 49, 0.05) 100%);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-800);
    border: 1.5px solid rgba(255, 203, 49, 0.3);
}

.highlight-badge {
    background: rgba(255, 203, 49, 0.2);
    color: #c99a00;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   SPEAKERS CHART
   ============================================ */
.speakers-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.speaker-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.speaker-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.speaker-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
}

.speaker-count {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.speaker-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.speaker-bar {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-300);
    min-width: 50px;
}

.speaker-bar.speaker-high {
    background: var(--primary-green);
}

.speaker-bar.speaker-medium {
    background: var(--primary-yellow);
}

.speaker-bar.speaker-low {
    background: #ff9800;
}

.speaker-bar.speaker-minimal {
    background: var(--gray-300);
}

.speaker-percentage {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    min-width: 40px;
    text-align: right;
}

/* ============================================
   ACTION ITEMS STYLING
   ============================================ */
.summary-list.action-items li {
    padding: 12px 14px;
    background: rgba(77, 184, 72, 0.1);
    border-left: 3px solid var(--primary-green);
}

.summary-list.action-items li i {
    color: var(--primary-green);
}

.action-owner {
    display: block;
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.btn-small {
    padding: 8px 14px;
    font-size: 0.8rem;
}

/* ============================================
   ADMIN WIDGET
   ============================================ */
.admin-widget {
    background: linear-gradient(135deg, rgba(32, 64, 154, 0.1) 0%, rgba(77, 184, 72, 0.05) 100%);
    border-radius: var(--radius);
    border: 2px solid var(--primary-blue);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.widget-header i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.widget-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header {
        padding: 0 1rem;
    }

    .main-container {
        padding: 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    .meeting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .meeting-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .tabs {
        overflow-x: auto;
    }

    .stats-row {
        flex-direction: column;
    }

    .transcript-message {
        flex-wrap: wrap;
    }

    .transcript-speaker {
        min-width: auto;
        width: 100%;
        margin-bottom: 4px;
    }
}
