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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.demo-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Browser Window */
.browser-window {
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    user-select: none;
}

.browser-header {
    background: #292929;
    padding: 12px 20px 0;
    display: flex;
    align-items: center;
    border-bottom: none;
    position: relative;
    z-index: 10;
}

.traffic-lights {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.traffic-light.red {
    background: #ff5f57;
}

.traffic-light.yellow {
    background: #ffbd2e;
}

.traffic-light.green {
    background: #28ca42;
}

.browser-tab {
    background: #1e1e1e;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    bottom: 0;
}

.tab-favicon {
    width: 16px;
    height: 16px;
}

/* Platform Container */
.platform-container {
    flex: 1;
    background: white;
    overflow: hidden;
}

/* Platform Content */
.platform-content {
    padding: 0;
    height: 100%;
}

.feed-section {
    background: white;
    padding: 24px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.section-logo {
    width: 32px;
    height: 32px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
}

.section-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 16px;
}

/* Feed Header with Filters */
.feed-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #e3f2fd;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}


.filter-label {
    color: #6c757d;
    font-weight: 500;
    font-size: 12px;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-tag span {
    line-height: 1;
}

.filter-tag.exclude {
    background: #e9ecef;
    color: #6c757d;
}

.filter-tag.exclude.active {
    background: #ff6a3d;
    color: white;
}

.filter-tag.include {
    background: #e9ecef;
    color: #6c757d;
}

.filter-tag.include.active {
    background: #86bb64;
    color: white;
}

.filter-close {
    font-size: 13px;
    opacity: 0.5;
    margin-left: 1px;
}

.filter-tag:hover .filter-close {
    opacity: 0.8;
}

/* Feed Container */
.feed-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fafafa;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Feed Item */
.feed-item {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background: white;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out;
    cursor: pointer;
}

.feed-item:hover {
    background: #f8f9fa;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-item.sensitive {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
}

.feed-item.sensitive:hover {
    background: #ffe8e8;
}

.feed-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.app-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.feed-meta {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
}

.time-stamp {
    font-size: 12px;
    color: #6c757d;
}

.app-name {
    font-size: 12px;
    color: #6c757d;
    margin-left: auto;
}

.platform-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 500;
}

.platform-tag.desktop {
    background: #e3f2fd;
    color: #1976d2;
}

.platform-tag.browser {
    background: #ffedcc;
    color: #e65100;
}

.feed-content {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.feed-content.benign {
    color: #adb5bd;
    font-style: italic;
}

.redacted {
    color: #dc3545;
    font-weight: bold;
}

.sensitive-data {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sensitive-badge {
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sensitive-badge svg {
    width: 14px;
    height: 14px;
}

.sensitive-type {
    font-size: 12px;
    color: #dc3545;
    font-weight: 600;
}

/* Scrollbar */
.feed-container::-webkit-scrollbar {
    width: 8px;
}

.feed-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.feed-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.feed-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modal */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #212529;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-section {
    margin-bottom: 24px;
}

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

.modal-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.modal-app-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.modal-user-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.modal-user-meta {
    font-size: 14px;
    color: #6c757d;
}

.modal-prompt {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.modal-prompt-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.modal-prompt-text {
    font-size: 14px;
    color: #212529;
    line-height: 1.5;
}

.modal-metadata {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.metadata-item {
    display: flex;
    flex-direction: column;
}

.metadata-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.metadata-value {
    font-size: 14px;
    color: #212529;
    font-weight: 500;
}

.risk-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 24px;
}

.risk-indicator.high {
    background: #fef3f2;
    border: 1px solid #fee4e2;
}

.risk-indicator.medium {
    background: #fffbeb;
    border: 1px solid #fef3c7;
}

.risk-indicator.low {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}

.risk-icon {
    width: 20px;
    height: 20px;
}

.risk-text {
    font-size: 14px;
    font-weight: 600;
}

.risk-indicator.high .risk-text {
    color: #dc2626;
}

.risk-indicator.medium .risk-text {
    color: #ea580c;
}

.risk-indicator.low .risk-text {
    color: #16a34a;
}

/* Responsive */
@media (max-width: 768px) {
    .feed-section {
        padding: 20px;
    }
    
    .feed-item {
        padding: 12px 16px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .time-stamp,
    .app-name {
        font-size: 11px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-metadata {
        grid-template-columns: 1fr;
    }
}