/* ============================================
   CBT Results Portal – White + Glassmorphism
   Black text, blue links, red/green touches
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff;                  /* pure white */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #000000;                       /* black text */
}

/* ---- Glass Card (frosted, white-tinted) ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(108, 99, 255, 0.08);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    transition: all 0.3s ease;
}

.glass-card-wide {
    max-width: 1000px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    color: #000000;                       /* black headings */
    font-weight: 700;
}

.text-accent {
    color: #6C63FF;                       /* blue accent */
}

.text-muted {
    color: #4b5563;
}

/* ---- Form inputs (glass effect) ---- */
.glass-input {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 500;
    transition: all 0.2s;
    color: #000000;
    width: 100%;
}

.glass-input:focus {
    outline: none;
    border-color: #6C63FF;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.glass-input::placeholder {
    color: #9ca3af;
}

/* ---- Buttons ---- */
.btn {
    border-radius: 14px;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #6C63FF;                  /* blue */
    color: white;
}

.btn-primary:hover {
    background: #5a52d5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.btn-success {
    background: #10b981;                  /* green */
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ef4444;                  /* red */
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-outline-glass {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.2);
    color: #6C63FF;
}

.btn-outline-glass:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: #6C63FF;
    color: #5a52d5;
}

/* ---- Alerts (glass) ---- */
.alert {
    border-radius: 16px;
    font-weight: 500;
    padding: 14px 18px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

.alert-success {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #92400e;
}

/* ---- Badges ---- */
.badge {
    font-weight: 600;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ---- Table (glass) ---- */
.glass-table {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.glass-table thead {
    background: rgba(108, 99, 255, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #000000;
    padding: 16px;
}

.glass-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    color: #000000;
}

.glass-table tr:last-child td {
    border-bottom: none;
}

/* ---- API key display ---- */
.api-key {
    background: rgba(108, 99, 255, 0.06);
    padding: 6px 14px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #6C63FF;
    font-weight: 600;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

/* ---- Logo area ---- */
.logo {
    text-align: center;
    margin-bottom: 24px;
}

.logo-icon {
    font-size: 3rem;
    color: #6C63FF;
    margin-bottom: 8px;
}

/* ---- Links ---- */
a {
    color: #6C63FF;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    color: #5a52d5;
    text-decoration: underline;
}

/* ---- Utility classes ---- */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.fw-bold { font-weight: 700; }