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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 1rem 2rem;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    background: #334155;
    border: none;
    color: #94a3b8;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #475569;
    color: #e2e8f0;
}

.nav-btn.active {
    background: #3b82f6;
    color: white;
}

.content {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.card {
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #334155;
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #334155;
}

.metric-card h3 {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #60a5fa;
}

.metric-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.iframe-container {
    width: 100%;
    height: 600px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #334155;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.iframe-full {
    height: calc(100vh - 200px);
}

iframe[data-src] {
    background: linear-gradient(110deg, #1e293b 8%, #334155 18%, #1e293b 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th, td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #334155;
}

th {
    background: #0f172a;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

tr:hover {
    background: #252f47;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-success { background: #064e3b; color: #34d399; }
.status-error { background: #7f1d1d; color: #f87171; }
.status-pending { background: #713f12; color: #fbbf24; }
.status-running { background: #1e3a8a; color: #60a5fa; }

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-bar input, .filter-bar select {
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.btn {
    background: #3b82f6;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.btn:hover {
    background: #2563eb;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.error {
    background: #7f1d1d;
    color: #fecaca;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.5rem;
}

.tab {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: #60a5fa;
    border-bottom-color: #3b82f6;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.refresh-indicator {
    display: inline-block;
    margin-left: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
