ai-observability / docs /style.css
Vishnu-VJ24
Deploy Final - Flawless SDK
f747401
:root {
--bg-dark: #0a0a0f;
--card-bg: rgba(255, 255, 255, 0.03);
--card-border: rgba(255, 255, 255, 0.08);
--text-main: #f3f4f6;
--text-muted: #9ca3af;
--primary: #6366f1;
--primary-hover: #4f46e5;
--accent: #ec4899;
--success: #10b981;
--fail: #ef4444;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-dark);
color: var(--text-main);
line-height: 1.6;
min-height: 100vh;
overflow-x: hidden;
position: relative;
}
/* Background Glows */
.glow-blob {
position: absolute;
border-radius: 50%;
filter: blur(100px);
z-index: -1;
opacity: 0.15;
animation: drift 20s infinite alternate linear;
}
.glow-1 {
width: 500px;
height: 500px;
background: var(--primary);
top: -100px;
left: -100px;
}
.glow-2 {
width: 400px;
height: 400px;
background: var(--accent);
bottom: -100px;
right: -100px;
}
@keyframes drift {
100% { transform: translate(50px, 50px); }
}
/* Navbar */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 5%;
background: rgba(10, 10, 15, 0.5);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--card-border);
position: sticky;
top: 0;
z-index: 100;
}
.logo {
display: flex;
align-items: center;
gap: 0.75rem;
font-weight: 800;
font-size: 1.25rem;
letter-spacing: -0.5px;
}
.logo-icon {
width: 24px;
height: 24px;
background: linear-gradient(135deg, var(--primary), var(--accent));
border-radius: 6px;
}
/* Buttons */
.btn-primary {
background: var(--primary);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.btn-primary:hover {
background: var(--primary-hover);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.btn-outline {
background: transparent;
color: var(--text-main);
border: 1px solid var(--card-border);
padding: 0.5rem 1rem;
border-radius: 8px;
text-decoration: none;
font-size: 0.875rem;
transition: all 0.2s ease;
}
.btn-outline:hover {
background: rgba(255, 255, 255, 0.05);
}
/* Main Layout */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem 5%;
}
.hero {
text-align: center;
margin-bottom: 3rem;
animation: fadeIn 1s ease-out;
}
.hero h1 {
font-size: 3.5rem;
font-weight: 800;
letter-spacing: -1px;
margin-bottom: 1rem;
}
.gradient-text {
background: linear-gradient(135deg, var(--primary), var(--accent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero p {
color: var(--text-muted);
font-size: 1.1rem;
max-width: 600px;
margin: 0 auto;
}
/* Setup Alert */
.setup-alert {
display: flex;
align-items: flex-start;
gap: 1rem;
margin-bottom: 2rem;
border-left: 4px solid #f59e0b;
position: relative;
}
.setup-alert .alert-content h3 { color: #f59e0b; font-size: 1rem; margin-bottom: 0.25rem; }
.setup-alert .alert-content p { font-size: 0.875rem; color: var(--text-muted); }
.btn-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; }
/* Grid Dashboard */
.dashboard-grid {
display: grid;
grid-template-columns: 1fr 1.5fr;
gap: 1.5rem;
}
.glass-card {
background: var(--card-bg);
backdrop-filter: blur(12px);
border: 1px solid var(--card-border);
border-radius: 16px;
padding: 1.5rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.glass-card:hover {
border-color: rgba(255, 255, 255, 0.15);
}
h2 {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 1rem;
color: #e5e7eb;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.card-header h2 { margin-bottom: 0; }
.btn-ghost { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: color 0.2s; font-size: 1.1rem; }
.btn-ghost:hover { color: var(--text-main); }
/* Inputs */
textarea {
width: 100%;
background: rgba(0, 0, 0, 0.2);
border: 1px solid var(--card-border);
border-radius: 8px;
padding: 1rem;
color: var(--text-main);
font-family: inherit;
font-size: 0.95rem;
resize: vertical;
min-height: 120px;
margin-bottom: 1rem;
transition: border-color 0.2s;
}
textarea:focus {
outline: none;
border-color: var(--primary);
}
/* Status Bar */
.status-bar {
display: flex;
gap: 2rem;
margin-bottom: 1.5rem;
padding: 1rem 1.5rem;
}
.status-item {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.status-item .label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-muted);
}
.value-badge {
display: inline-flex;
padding: 0.25rem 0.75rem;
border-radius: 100px;
font-size: 0.875rem;
font-weight: 600;
background: rgba(255,255,255,0.1);
}
.value-badge.pass { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.value-badge.fail { background: rgba(239, 68, 68, 0.15); color: var(--fail); }
.status-item .value { font-size: 1.1rem; font-weight: 600; }
/* Code and Outputs */
.content-box {
background: rgba(0, 0, 0, 0.3);
border-radius: 8px;
padding: 1.25rem;
font-size: 0.95rem;
min-height: 80px;
}
.code-card {
margin-top: 1.5rem;
}
.code-block-container {
background: rgba(0, 0, 0, 0.4);
border-radius: 8px;
padding: 1rem;
max-height: 300px;
overflow-y: auto;
border: 1px solid var(--card-border);
}
pre { margin: 0; }
code {
font-family: 'Fira Code', monospace;
font-size: 0.85rem;
color: #a78bfa;
}
/* Loading Spinner */
.loader {
width: 16px;
height: 16px;
border: 2px solid rgba(255,255,255,0.3);
border-radius: 50%;
border-top-color: #fff;
animation: spin 1s ease-in-out infinite;
}
.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* Responsive */
@media (max-width: 768px) {
.dashboard-grid { grid-template-columns: 1fr; }
.hero h1 { font-size: 2.5rem; }
}