/* LEOS Mission Ready - Analytics & Reports Styles */

.analytics-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #0a0e27;
    color: #e2e8f0;
    overflow: hidden;
}

/* Analytics Header */
.analytics-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 4px 0;
}

.header-content p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.time-range-selector {
    display: flex;
    gap: 4px;
    background: rgba(15, 23, 42, 0.6);
    padding: 4px;
    border-radius: 8px;
}

.time-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.time-btn:hover {
    color: #e2e8f0;
    background: rgba(51, 65, 85, 0.4);
}

.time-btn.active {
    background: rgba(0, 153, 255, 0.2);
    color: #00d4ff;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
}

.action-btn.primary {
    background: rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 153, 255, 0.3);
    color: #00d4ff;
}

.action-btn.primary:hover {
    background: rgba(0, 153, 255, 0.3);
    transform: translateY(-1px);
}

/* Navigation */
.analytics-nav {
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    padding: 0 32px;
}

.nav-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    color: #e2e8f0;
}

.nav-tab.active {
    color: #00d4ff;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #00d4ff;
}

/* Content Area */
.analytics-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

/* Analytics Overview */
.analytics-overview {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Key Metrics */
.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.metric-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.metric-card.primary {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 153, 255, 0.05);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.metric-icon {
    font-size: 24px;
}

.metric-label {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.metric-trend {
    font-size: 13px;
    color: #94a3b8;
}

.metric-trend.positive {
    color: #10b981;
}

.metric-trend.negative {
    color: #ef4444;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.chart-container {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 24px;
}

.chart-container h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 20px 0;
}

.chart-placeholder {
    background: rgba(10, 14, 39, 0.4);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* Health Matrix */
.health-matrix {
    overflow-x: auto;
}

.health-table {
    width: 100%;
    border-collapse: collapse;
}

.health-table th,
.health-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.health-table th {
    background: rgba(30, 41, 59, 0.4);
    color: #94a3b8;
    font-weight: 500;
    font-size: 13px;
}

.sat-name {
    text-align: left !important;
    font-weight: 500;
    color: #e2e8f0;
}

.health-cell {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.health-cell.good {
    background: rgba(16, 185, 129, 0.3);
}

.health-cell.warning {
    background: rgba(251, 191, 36, 0.3);
}

.health-cell.critical {
    background: rgba(239, 68, 68, 0.3);
}

.health-legend {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.health-indicator {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.health-indicator.good {
    background: rgba(16, 185, 129, 0.3);
}

.health-indicator.warning {
    background: rgba(251, 191, 36, 0.3);
}

.health-indicator.critical {
    background: rgba(239, 68, 68, 0.3);
}

/* Quick Insights */
.quick-insights {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    padding: 24px;
}

.quick-insights h3 {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 20px 0;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.insight-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.insight-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

.insight-item.warning {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
}

.insight-icon {
    font-size: 24px;
}

.insight-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 4px 0;
}

.insight-content p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* Recent Activity */
.recent-activity {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    padding: 24px;
}

.recent-activity h3 {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 20px 0;
}

.notes-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.note-preview {
    padding: 16px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.note-preview:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

.note-preview.pinned {
    border-color: rgba(251, 191, 36, 0.3);
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.note-author {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
}

.note-time {
    font-size: 12px;
    color: #64748b;
}

.note-content {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 12px 0;
}

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

.note-tags {
    display: flex;
    gap: 8px;
}

.tag {
    padding: 2px 8px;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 12px;
    font-size: 11px;
    color: #00d4ff;
}

.note-replies {
    font-size: 12px;
    color: #64748b;
}

.view-all-btn {
    background: transparent;
    border: none;
    color: #00d4ff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    color: #66d9ff;
}

/* Reports View */
.reports-view {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reports-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

.report-filters {
    display: flex;
    gap: 12px;
}

.filter-select,
.search-input {
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.search-input {
    width: 200px;
}

/* Report Templates */
.report-templates h3 {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 20px 0;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.template-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.template-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.template-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px 0;
}

.template-card p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 20px 0;
}

.template-btn {
    width: 100%;
    padding: 10px 16px;
    background: rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 153, 255, 0.3);
    color: #00d4ff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-btn:hover {
    background: rgba(0, 153, 255, 0.3);
    transform: translateY(-1px);
}

/* Saved Reports */
.saved-reports h3 {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 20px 0;
}

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

.report-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.report-item:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
}

.report-icon {
    font-size: 32px;
}

.report-info {
    flex: 1;
}

.report-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 4px 0;
}

.report-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

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

.report-btn {
    padding: 6px 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-btn:hover {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

/* Insights View */
.insights-view {
    padding: 20px 0;
}

.insights-view h2 {
    font-size: 24px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px 0;
}

.insights-description {
    font-size: 16px;
    color: #94a3b8;
    margin: 0 0 32px 0;
}

.insights-categories {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.insight-category h3 {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 20px 0;
}

.predictions-list,
.optimizations-list,
.anomalies-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.prediction-card,
.optimization-card,
.anomaly-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.prediction-card:hover,
.optimization-card:hover,
.anomaly-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.prediction-card h4,
.optimization-card h4,
.anomaly-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px 0;
}

.prediction-card p,
.optimization-card p,
.anomaly-card p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 16px 0;
}

.prediction-confidence {
    margin-bottom: 16px;
}

.prediction-confidence span {
    font-size: 13px;
    color: #64748b;
}

.confidence-bar {
    width: 100%;
    height: 6px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #0099ff 0%, #00d4ff 100%);
    transition: width 0.3s ease;
}

.insight-action-btn,
.apply-optimization-btn,
.investigate-btn {
    padding: 8px 16px;
    background: rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 153, 255, 0.3);
    color: #00d4ff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.insight-action-btn:hover,
.apply-optimization-btn:hover,
.investigate-btn:hover {
    background: rgba(0, 153, 255, 0.3);
}

.anomaly-card.warning {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
}

.anomaly-time {
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-bottom: 12px;
}

/* Notes View */
.notes-view {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    height: 100%;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    grid-column: 1 / -1;
}

.notes-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

.new-note-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 153, 255, 0.3);
    color: #00d4ff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-note-btn:hover {
    background: rgba(0, 153, 255, 0.3);
    transform: translateY(-1px);
}

.notes-toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    grid-column: 1 / -1;
}

.note-filters {
    display: flex;
    gap: 12px;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(51, 65, 85, 0.6);
    color: #e2e8f0;
}

.filter-btn.active {
    background: rgba(0, 153, 255, 0.2);
    border-color: rgba(0, 153, 255, 0.3);
    color: #00d4ff;
}

.note-search {
    display: flex;
}

.notes-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Note Card */
.note-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.note-card:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
}

.note-card.pinned {
    border-color: rgba(251, 191, 36, 0.3);
}

.note-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #00d4ff;
}

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

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
}

.note-timestamp {
    font-size: 12px;
    color: #64748b;
}

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

.pin-icon {
    font-size: 16px;
}

.note-menu-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.note-menu-btn:hover {
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
}

.note-body {
    margin: 16px 0;
}

.note-body p {
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
}

.note-interactions {
    display: flex;
    gap: 16px;
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.interaction-btn:hover {
    background: rgba(51, 65, 85, 0.4);
    color: #e2e8f0;
}

/* Note Composer */
.note-composer {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 24px;
}

.note-composer h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 20px 0;
}

.composer-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.note-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

.note-textarea:focus {
    outline: none;
    border-color: rgba(0, 153, 255, 0.5);
}

.composer-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.formatting-tools {
    display: flex;
    gap: 4px;
}

.format-btn {
    width: 32px;
    height: 32px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.format-btn:hover {
    background: rgba(51, 65, 85, 0.6);
    color: #e2e8f0;
}

.attachment-tools {
    display: flex;
    gap: 8px;
}

.attach-btn {
    padding: 6px 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attach-btn:hover {
    background: rgba(51, 65, 85, 0.6);
    color: #e2e8f0;
}

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

.tags-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

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

.cancel-btn,
.post-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cancel-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.cancel-btn:hover {
    background: rgba(51, 65, 85, 0.6);
}

.post-btn {
    background: rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 153, 255, 0.3);
    color: #00d4ff;
}

.post-btn:hover {
    background: rgba(0, 153, 255, 0.3);
}

/* Collaboration Sidebar */
.collaboration-sidebar {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    padding: 24px;
}

.collaboration-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 16px 0;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.activity-item {
    display: flex;
    gap: 12px;
}

.activity-avatar {
    width: 32px;
    height: 32px;
    background: rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #00d4ff;
    flex-shrink: 0;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-user {
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
}

.activity-action {
    font-size: 12px;
    color: #94a3b8;
}

.activity-time {
    font-size: 11px;
    color: #64748b;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 6px 12px;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.2);
    border-radius: 16px;
    font-size: 12px;
    color: #00d4ff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: rgba(0, 153, 255, 0.2);
}

/* Custom Analytics */
.custom-analytics {
    padding: 20px 0;
}

.custom-analytics h2 {
    font-size: 24px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px 0;
}

.custom-analytics > p {
    font-size: 16px;
    color: #94a3b8;
    margin: 0 0 32px 0;
}

.analytics-builder {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
    height: calc(100vh - 300px);
}

.builder-sidebar {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
}

.builder-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 16px 0;
}

.data-sources,
.chart-types {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.source-item,
.chart-type {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    cursor: move;
    transition: all 0.2s ease;
}

.source-item:hover,
.chart-type:hover {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

.source-icon,
.chart-icon {
    font-size: 20px;
}

.builder-canvas {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.dashboard-name {
    flex: 1;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    max-width: 300px;
}

.save-dashboard-btn {
    padding: 8px 16px;
    background: rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 153, 255, 0.3);
    color: #00d4ff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-dashboard-btn:hover {
    background: rgba(0, 153, 255, 0.3);
}

.drop-zone {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    margin: 20px;
    transition: all 0.2s ease;
}

.drop-zone.drag-over {
    border-color: rgba(0, 153, 255, 0.5);
    background: rgba(0, 153, 255, 0.05);
}

.drop-zone p {
    color: #64748b;
    font-size: 16px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .notes-view {
        grid-template-columns: 1fr;
    }
    
    .collaboration-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .analytics-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .analytics-nav {
        overflow-x: auto;
        padding: 0 20px;
    }
    
    .key-metrics {
        grid-template-columns: 1fr;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .predictions-list,
    .optimizations-list,
    .anomalies-list {
        grid-template-columns: 1fr;
    }
    
    .analytics-builder {
        grid-template-columns: 1fr;
    }
    
    .builder-sidebar {
        display: none;
    }
}