:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --primary: #38bdf8;  /* Cyan */
    --accent: #f472b6;   /* Pink */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* --- Background Orbs (Glow effects) --- */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}
.orb-1 { width: 300px; height: 300px; background: #38bdf8; top: -50px; left: -50px; }
.orb-2 { width: 250px; height: 250px; background: #818cf8; bottom: -50px; right: -50px; }

/* --- Glass Card --- */
.glass-card {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --- Typography --- */
header { text-align: center; margin-bottom: 30px; }
.badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -1px; margin-bottom: 5px; }
.highlight { color: var(--primary); }
p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Controls --- */
.controls { margin-bottom: 20px; }
.input-group {
    display: flex;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--border);
    max-width: 400px;
    margin: 0 auto;
}

input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

button {
    background: var(--primary);
    color: #0f172a;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover { background: #7dd3fc; transform: translateY(-1px); }
button:active { transform: translateY(0); }
button:disabled { background: #475569; cursor: not-allowed; }

#statusMsg { text-align: center; margin-top: 10px; min-height: 20px; font-size: 0.85rem; }

/* --- Chart Area --- */
.chart-wrapper {
    position: relative;
    height: 350px;
    width: 100%;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid var(--border);
}

/* --- Mobile Optimization --- */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .glass-card { padding: 20px; }
    .input-group { flex-direction: column; background: transparent; border: none; padding: 0; }
    input { background: rgba(15, 23, 42, 0.6); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
    button { width: 100%; padding: 14px; }
    .chart-wrapper { height: 280px; padding: 10px; }
}

/* --- Footer Styling --- */
footer {
    margin-top: 25px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

/* A subtle line to separate chart from footer */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin-bottom: 20px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

footer a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary); /* Glows Cyan on hover */
    text-shadow: 0 0 8px var(--primary);
}

/* The beating heart animation */
.heart {
    color: var(--accent); /* Pink color */
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

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

/* Tech Stack Badges */
.tech-stack {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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