:root {
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --primary-hover: #4338ca;
    /* Indigo 700 */
    --success-color: #10b981;
    /* Emerald 500 */
    --danger-color: #ef4444;
    /* Red 500 */
    --text-main: #1f2937;
    /* Gray 800 */
    --text-secondary: #6b7280;
    /* Gray 500 */
    --bg-color: #f3f4f6;
    /* Gray 100 */
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: linear-gradient(135deg, #f3f4f6 0%, #e0e7ff 100%);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hidden {
    display: none !important;
}

/* Login View */
.login-view h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.login-view p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.3);
}

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

/* Dashboard View */
.header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.user-info h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.badge {
    background: #e0e7ff;
    color: #4338ca;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.message-box {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    background: #f9fafb;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.table-container {
    text-align: left;
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.status-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.status-table th {
    text-align: left;
    padding: 12px 16px;
    background: #374151;
    /* Gray 700 - Dark Background */
    color: #ffffff;
    /* White Text */
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.status-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.status-table tr:hover {
    background-color: #f3f4f6;
}

.status-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-main);
}

.status-table tr:last-child td {
    border-bottom: none;
}

.val-col {
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
    font-weight: 500;
}

/* Status Colors - Applied to text or maybe badges */
/* Status Colors - Applied to text or maybe badges */
.status-met {
    position: relative;
    padding-left: 20px;
}

/* Use higher specificity to ensure color override */
td.status-met {
    color: var(--success-color) !important;
    font-weight: 700;
}

.status-met::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--success-color);
}

.status-unmet {
    position: relative;
    padding-left: 20px;
}

/* Use higher specificity to ensure color override */
td.status-unmet {
    color: var(--danger-color) !important;
    font-weight: 700;
}

.status-unmet::before {
    content: "✕";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--danger-color);
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    text-align: center;
    line-height: 1.5;
}

.help-2 {
    font-size: 0.8125rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 0.5rem;
}

.help-2 a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.2s;
}

.help-2 a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Loading */
.loading-spinner {
    border: 3px solid #e5e7eb;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .status-table th,
    .status-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}