/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Top Navigation */
.top-navigation {
    background: white;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-left-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-button {
    background: none;
    border: none;
    font-size: 24px;
    color: #ff6b35;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.2s ease;
}

.back-button:hover {
    transform: translateX(-2px);
}

.timestamp {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.nav-right-section {
    display: flex;
    align-items: center;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.notification-bell:hover {
    background: #f3f4f6;
}

.notification-bell svg {
    color: #4b5563;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Secondary Navigation */
.secondary-navigation {
    background: #D4711A;
    display: flex;
    overflow-x: auto;
    padding: 0 16px;
    position: sticky;
    top: 48px;
    z-index: 99;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.secondary-navigation::-webkit-scrollbar {
    height: 0;
}

.nav-link {
    padding: 14px 20px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    color: white;
    border-bottom-color: white;
    font-weight: 600;
}

.nav-link.intune {
  font-weight: 700;
  color: #fff;
  border-bottom-color: #fff;
}

/* Main Container */
.main-container {
    padding: 24px 40px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Insights List Container */
.suggestions-container {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Header */
.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,107,53,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.suggestions-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.new-pill {
    background: #FF6B35;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.refresh-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-button:hover {
    background: #e5e7eb;
}

/* Insight Row Cards */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    position: relative;
}

.suggestion-item.new {
    background: #fff7f5;
    border-color: #FF6B35;
}

.suggestion-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.suggestion-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ede9fe;
    border: 1px solid #c4b5fd;
    font-size: 20px;
}

.suggestion-content {
    flex: 1;
}

/* Title row */
.insight-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.insight-title {
    font-size: 15px;
    font-weight: 700;
    color: #FF6B35;
    text-decoration: none;
    cursor: pointer;
}

.insight-title:hover {
    text-decoration: underline;
}

.new-badge {
    background: #FF6B35;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
}

/* Meta row */
.insight-meta-row {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.insight-meta-row .segment {
    font-weight: 600;
    color: #374151;
}

.insight-meta-row .priority-critical { color: #ef4444; font-weight: 600; }
.insight-meta-row .priority-high { color: #f97316; font-weight: 600; }
.insight-meta-row .priority-medium { color: #eab308; font-weight: 600; }

/* Date row */
.insight-date-row {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #9ca3af;
}

.insight-date-row span strong {
    color: #374151;
    font-weight: 600;
}

/* Dismiss button */
.dismiss-button {
    padding: 6px 16px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: center;
    flex-shrink: 0;
}

.dismiss-button:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Bottom Navigation */
.bottom-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 8px 12px;
    display: flex;
    justify-content: space-around;
    z-index: 90;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.nav-button span {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.nav-button.active span {
    color: #FF6B35;
    font-weight: 600;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: white;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-left: 4px solid #10b981;
    z-index: 2000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
