/* styles.css */
:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --error: #ef4444;
}

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

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

.bg-orbs {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 { width: 400px; height: 400px; background: #3b82f6; top: -10%; left: -10%; }
.orb-2 { width: 300px; height: 300px; background: #8b5cf6; bottom: 10%; right: -5%; animation-delay: -5s; }
.orb-3 { width: 250px; height: 250px; background: #10b981; top: 40%; left: 30%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.glass-container {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 800px;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

header p { color: var(--text-secondary); font-size: 0.95rem; }

.config-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-row {
    display: flex;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hint-text {
    font-size: 0.75rem;
    color: #f59e0b;
    margin-top: -4px;
}

input[type="text"], input[type="url"], textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, textarea:focus { border-color: var(--accent); }
textarea { height: 100px; resize: vertical; }

.claims-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.4);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    max-height: 200px;
    overflow-y: auto;
}

.claim-cb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.actions {
    display: flex;
    gap: 1rem;
}

.primary-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.primary-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.primary-btn.outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.primary-btn.outline:hover { background: rgba(59, 130, 246, 0.1); }

.alert {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 0.9rem;
}
.hidden { display: none !important; }

.results-section {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}
.card-header h2 { font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.tag { font-size: 0.7rem; padding: 0.2rem 0.5rem; background: rgba(59, 130, 246, 0.2); color: #93c5fd; border-radius: 6px; text-transform: uppercase; font-weight: 700; }

.result-content { padding: 0; display: flex; flex-direction: column; }
#result-text { height: 120px; border: none; border-radius: 0; border-bottom: 1px solid var(--border-color); }

#qr-container { padding: 2rem; display: flex; justify-content: center; background: #fff; }

.polling-section {
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-align: center;
}

.polling-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #6ee7b7;
}

.pulse-ring {
    width: 12px; height: 12px; border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
