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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 24px;
    font-weight: 600;
}

.environment-chip {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 128, 0, 0.1);
    color: #0b8a0b;
    text-transform: uppercase;
}

.environment-chip.production {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.environment-chip.preview {
    background: rgba(33, 150, 243, 0.15);
    color: #1976d2;
}

.environment-chip.development {
    background: rgba(255, 193, 7, 0.2);
    color: #b28704;
}

.header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.build-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.build-version {
    font-weight: 600;
    color: #333;
}

.build-id {
    font-family: 'Menlo', 'Monaco', monospace;
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

.build-date {
    color: #777;
}

.build-divider {
    color: #ccc;
}

.build-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.build-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.build-meta .label {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 8px;
}
.clear-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.clear-btn:hover {
    background: #cc0000;
}

.clear-btn:active {
    transform: scale(0.98);
}

.status {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
}

.status.show {
    display: block;
}

.status.success {
    background: #4caf50;
    color: white;
}

.status.error {
    background: #f44336;
    color: white;
}

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

.empty-state {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    color: #666;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notification {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #2196F3;
}

.notification.github {
    border-left-color: #24292e;
}

.notification.new {
    animation: slideIn 0.3s ease-out, pulse 0.5s ease-out;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.notification-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.notification-time {
    font-size: 12px;
    color: #999;
}

.notification-body {
    margin-bottom: 12px;
    color: #666;
    line-height: 1.5;
}

.notification-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.meta-item {
    font-size: 12px;
    color: #999;
}

.meta-item strong {
    color: #666;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.action-btn {
    background: #f5f5f5;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #e0e0e0;
}

.json-preview {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    overflow-x: auto;
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.json-preview pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.header-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.build-info {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .clear-btn {
        width: 100%;
    }
}
