/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nav-link.intune {
  font-weight: 700;
  color: #fff;
  border-bottom-color: #fff;
}


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;
}

/* Main Container */
.main-container {
    padding: 24px 16px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.suggestions-container {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.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: 22px;
    font-weight: 700;
    color: #111827;
}

.new-pill {
    background: linear-gradient(135deg, #FF6B35, #E85A2A);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255,107,53,0); }
}

.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;
}

/* Search */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.search-bar:focus-within {
    background: white;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    color: #111827;
    outline: none;
}

.search-input::placeholder {
    color: #9ca3af;
}

/* Filter Row */
.filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:hover {
    border-color: #9ca3af;
}

.filter-select:focus {
    outline: none;
    border-color: #FF6B35;
}

.spacer {
    flex: 1;
}

.sort-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Type Buttons */
.type-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.type-button {
    padding: 8px 20px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-button:hover {
    background: #e5e7eb;
}

.type-button.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

/* Suggestions List */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Suggestion Item */
.suggestion-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.suggestion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #FF6B35;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.suggestion-item:hover {
    background: white;
    border-color: #FF6B35;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.suggestion-item:hover::before {
    transform: scaleY(1);
}

.suggestion-item.new {
    background: rgba(255,107,53,0.05);
    border-color: #FF6B35;
}

.suggestion-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: white;
    border: 1px solid #e5e7eb;
}

.suggestion-icon.insight {
    background: rgba(139,92,246,0.1);
    border-color: #8b5cf6;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.suggestion-link {
    color: #FF6B35;
    text-decoration: none;
    transition: color 0.2s ease;
}

.suggestion-link:hover {
    color: #E85A2A;
    text-decoration: underline;
}

.quintile-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
}

.alert-title {
    color: #FF6B35;
    font-weight: 600;
    font-size: 14px;
    margin: 6px 0;
}

.suggestion-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.suggestion-description {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
}

.suggestion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-info {
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.date-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-label {
    color: #9ca3af;
    font-weight: 500;
}

.date-value {
    color: #1f2937;
    font-weight: 600;
}

.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;
}

.dismiss-button:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Modal */
.detail-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 1000;
}

.detail-modal.show {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
}

.modal-panel {
    position: absolute;
    right: 0;
    top: 0;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    animation: slideInFromRight 0.3s ease;
}

@keyframes slideInFromRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.bookmark-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,107,53,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.modal-title {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zs-badge {
    width: 32px;
    height: 32px;
    background: #FF6B35;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.close-button {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-button:hover {
    background: #e5e7eb;
    color: #111827;
    transform: rotate(90deg);
}

.modal-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.modal-tab {
    padding: 8px 16px;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.modal-tab:hover {
    background: white;
    color: #374151;
}

.modal-tab.active {
    background: white;
    color: #FF6B35;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 600;
}

.modal-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.footer-button {
    padding: 10px 24px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-button:hover {
    background: #f3f4f6;
}

.footer-button.secondary {
    background: #f3f4f6;
}

/* HCP Card (used for HCP + Explore Other Insights cards) */
.hcp-insight-card {
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hcp-insight-card:hover {
    border-color: #FF6B35;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* 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;
}

.nav-button:hover span {
    color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-panel {
        width: 100%;
        max-width: none;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .spacer {
        display: none;
    }
}

/* 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; }
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}
