/* Modern Design System */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --danger-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Background */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Modern Container */
.modern-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Section */
.modern-header {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.modern-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-title.title-meetings::before { content: '📊'; font-size: 1.5rem; }
.modern-title.title-staff::before { content: '👥'; font-size: 1.5rem; }
.modern-title.title-admin::before { content: '⚙️'; font-size: 1.5rem; }

/* Filter Section */
.filter-form {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: var(--transition);
    background: white;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-checkbox {
    position: relative;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.filter-checkbox:checked {
    background: var(--primary-gradient);
    border-color: transparent;
}

.filter-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.filter-btn {
    background: var(--primary-gradient);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Modern Table Design */
.table-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
}

.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: white;
    margin: 0;
}

.modern-table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.modern-table thead th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.modern-table thead th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.modern-table thead th:hover::after {
    width: 100%;
}

.modern-table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid #f1f5f9;
}

.modern-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.modern-table tbody tr:last-child {
    border-bottom: none;
}

.modern-table td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
}

.modern-table .row-number {
    width: 60px;
    text-align: center;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* Link Styling */
.table-link {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

.table-link:hover {
    color: #667eea;
    text-decoration: none;
    transform: translateX(5px);
}

.title-cell {
    min-width: 250px;
    max-width: 350px;
}

.title-cell .table-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Data Cells */
.datetime-cell {
    color: #718096;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.8rem;
    min-width: 130px;
}

.duration-cell, .stat-cell {
    font-weight: 600;
    color: #4a5568;
    min-width: 80px;
}

.creator-cell, .secondary-cell {
    color: #718096;
    font-size: 0.8rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Score Badges */
.score-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 80px;
    justify-content: center;
}

.score-excellent {
    background: var(--success-gradient);
}

.score-good {
    background: var(--warning-gradient);
}

.score-needs-improvement {
    background: var(--danger-gradient);
}

.score-no-data {
    background: #e2e8f0;
    color: #718096;
}

/* Stat Badges */
.stat-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    display: inline-block;
}

.stat-percentage {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.stat-time {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* Flag Badges */
.flags-cell {
    min-width: 100px;
}

.flag-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.1rem;
    display: inline-block;
}

.flag-short {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.flag-drop {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
}

.flag-default {
    background: rgba(113, 128, 150, 0.1);
    color: #718096;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .creator-cell,
    .flags-cell,
    .secondary-cell {
        display: none;
    }
}

@media (max-width: 768px) {
    .modern-container {
        padding: 1rem 0.5rem;
    }
    
    .modern-header {
        padding: 1.5rem;
    }
    
    .modern-title {
        font-size: 1.5rem;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .modern-table {
        font-size: 0.8rem;
    }
    
    .modern-table td,
    .modern-table th {
        padding: 0.75rem 0.5rem;
    }
    
    .row-number,
    .duration-cell,
    .creator-cell,
    .flags-cell,
    .secondary-cell,
    .stat-cell {
        display: none;
    }
    
    .title-cell {
        min-width: auto;
        max-width: none;
    }
    
    .datetime-cell {
        min-width: auto;
        font-size: 0.75rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading .modern-table tbody tr {
    animation: pulse 2s ease-in-out infinite;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 600; }
.font-normal { font-weight: 400; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* Process Button (for meeting detail pages) */
.process-section {
    margin-top: 2rem;
    text-align: center;
}

.process-btn {
    background: var(--primary-gradient);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.process-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

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

.process-btn::before {
    content: '⚡';
    font-size: 1.2rem;
}

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

.loading::before {
    content: '⟲';
    animation: spin 1s linear infinite;
}

/* Analytics Dashboard Specific Styles */
.analytics-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.analytics-header {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.analytics-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.analytics-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.analytics-title::before {
    content: '📊';
    font-size: 1.5rem;
}

.analytics-subtitle {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.analytics-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.analytics-btn {
    background: var(--primary-gradient);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.analytics-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.analytics-btn i {
    font-size: 0.9rem;
}

/* Period Selector */
.period-selector {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: var(--transition);
    background: white;
    color: #4a5568;
    font-weight: 500;
    min-width: 120px;
}

.period-selector:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Chart Cards */
.chart-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

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

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-title::before {
    content: '📈';
    font-size: 1rem;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

/* Statistics Cards */
.stats-section {
    margin-top: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--success-gradient);
}

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

.stats-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-title::before {
    content: '📊';
    font-size: 1rem;
}

.stats-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
}

.stat-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-unit {
    font-size: 0.75rem;
    color: #a0aec0;
    font-weight: 500;
}

/* Color variations for different stats */
.stat-item.stat-primary .stat-value {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item.stat-success .stat-value {
    background: var(--success-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item.stat-warning .stat-value {
    background: var(--warning-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item.stat-primary::before {
    background: var(--primary-gradient);
}

.stat-item.stat-success::before {
    background: var(--success-gradient);
}

.stat-item.stat-warning::before {
    background: var(--warning-gradient);
}

/* Responsive Design for Analytics */
@media (max-width: 1200px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-items {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .analytics-container {
        padding: 1rem 0.5rem;
    }
    
    .analytics-header {
        padding: 1.5rem;
    }
    
    .analytics-title {
        font-size: 1.5rem;
    }
    
    .analytics-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        justify-content: space-between;
    }
    
    .chart-card {
        padding: 1.5rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .stats-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Chart Loading State */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #718096;
    flex-direction: column;
    gap: 1rem;
}

.chart-loading::before {
    content: '⟳';
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

.chart-loading-text {
    font-size: 0.875rem;
    font-weight: 500;
} 