/* Base Colors & Variables */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: rgba(255, 255, 255, 0.1);
    --bg-gradient: radial-gradient(circle at top right, #1e293b, #0f172a);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1000px;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: fadeIn 0.8s ease-out;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.btn-secondary {
    background: var(--secondary);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.note-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

input,
select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px;
    color: white;
    outline: none;
    width: 100%;
}

input:focus,
select:focus {
    border-color: var(--primary);
}

.hidden {
    display: none !important;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .glass-card {
        padding: 20px;
        border-radius: 16px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    /* Test Page Adjustments */
    .test-container {
        width: 100% !important;
        padding: 5px !important;
    }
    .matrix-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    .progress-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}
/* Injected Mobile Responsive Patch */
@media (max-width: 480px) {
    .container { padding: 15px !important; margin: 0 auto !important; width: 100% !important; box-sizing: border-box !important; }
    .card, .card-static { padding: 20px !important; margin: 0 !important; width: 100% !important; border-radius: 16px !important; box-sizing: border-box !important; }
    .options-grid { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .btn-group { flex-direction: column !important; width: 100% !important; }
    .btn-group .btn { width: 100% !important; margin-bottom: 10px !important; }
    .form-group, .form-input, .form-control { width: 100% !important; box-sizing: border-box !important; }
}
