:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --error: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

[v-cloak] { display: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Effect */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Topbar */
.topbar {
    height: 70px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .text {
    font-size: 1.25rem;
    font-weight: 700;
}

.logo .text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--text);
}

/* Auth Section */
.auth-section {
    height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-card h1 {
    margin-bottom: 8px;
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group {
    text-align: left;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: wait;
    filter: grayscale(0.5);
}

.btn-secondary {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-text {
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-text:hover:not(:disabled) {
    color: var(--text);
}

.btn-back {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-4px);
}

.btn-copy {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    filter: brightness(1.1);
}

.btn-ai {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}

.btn-ai:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3);
}

.btn-ai:disabled {
    opacity: 0.7;
    cursor: wait;
    animation: breathing 1.5s infinite ease-in-out;
}

@keyframes breathing {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(0.98); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Issue List */
.issue-item {
    margin-bottom: 16px;
}

.issue-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.severity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.severity-dot.error { background: var(--error); }
.severity-dot.contrast { background: var(--warning); }
.severity-dot.alert { background: #38bdf8; }

.issue-content h4 { margin-bottom: 4px; }
.issue-content code { background: rgba(0,0,0,0.3); padding: 2px 4px; border-radius: 4px; font-size: 0.8rem; }

pre {
    background: #1e293b;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
}

.remediation-area {
    margin-top: 20px;
    padding: 24px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.remediation-area strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-info p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.code-fix {
    position: relative;
}

.code-fix pre {
    background: #020617;
    border: 1px solid var(--border);
    padding: 20px;
    padding-right: 100px;
}

.code-fix .btn-copy {
    position: absolute;
    top: 36px;
    right: 12px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    width: 100%;
    max-width: 500px;
    animation: modalIn 0.3s ease-out;
}

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

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.empty-state {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

/* Stats */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat span {
    font-size: 1.1rem;
    font-weight: 600;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.issue-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-pill {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.filter-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
