@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --error: #ef4444;
    --glass-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-dark);
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    
    /* Anti-copy protection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

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

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

p.description {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

input[type="text"], 
select, 
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus, 
select:focus {
    border-color: var(--primary);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Test specific styles */
.question-item {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.question-item:last-child {
    border-bottom: none;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.option-label:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
}

.option-label input {
    margin-right: 1rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary);
}

/* File upload styling */
.file-upload-container {
    margin-top: 1rem;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.file-custom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed var(--glass-border);
    border-radius: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.file-custom-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

/* Admin Styles */
.submission-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--glass-border);
}

.submission-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.submission-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.badge-error { background: rgba(239, 68, 68, 0.2); color: var(--error); }

.correct-indicator { color: var(--success); font-weight: 600; margin-left: 0.5rem; }
.incorrect-indicator { color: var(--error); font-weight: 600; margin-left: 0.5rem; }

/* Print Styles for PDF Export */
@media print {
    body {
        background: white !important;
        color: black !important;
        padding: 0 !important;
    }
    .glass-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        backdrop-filter: none !important;
        color: black !important;
        padding: 0 !important;
    }
    .btn, .no-print {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
    h1 {
        -webkit-text-fill-color: black !important;
        color: black !important;
    }
    .badge {
        border: 1px solid black !important;
        color: black !important;
        background: transparent !important;
    }
    .submission-row {
        border: 1px solid #eee !important;
    }
    a {
        text-decoration: none !important;
        color: black !important;
    }
    .nush-table {
        border: 1px solid #333 !important;
        background: transparent !important;
        color: black !important;
    }
    .nush-table th, .nush-table td {
        border-bottom: 1px solid #333 !important;
        color: black !important;
    }
    .nush-table th {
        background: #f0f0f0 !important;
    }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    .glass-card { padding: 1.5rem; }
}
