/*
|--------------------------------------------------------------------------
| EasyResult Online Exam
| Global Application Styles
|--------------------------------------------------------------------------
*/

:root {
    --app-primary: #0d6efd;
    --app-bg: #f4f6f9;
    --app-text: #212529;
    --app-muted: #6c757d;
    --app-border: #e9ecef;
    --app-radius: 12px;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--app-bg);
    color: var(--app-text);
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#app {
    min-height: 100vh;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.card {
    border-radius: var(--app-radius);
}

.profile-avatar {
    object-fit: cover;
}

.text-muted {
    color: var(--app-muted) !important;
}

/*
|--------------------------------------------------------------------------
| Dashboard
|--------------------------------------------------------------------------
*/

.dashboard-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

.dashboard-number {
    margin-top: 4px;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 700;
}

.dashboard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.10);
    color: var(--app-primary);
    font-size: 1.25rem;
}

/*
|--------------------------------------------------------------------------
| Accessibility
|--------------------------------------------------------------------------
*/

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
}

/*
|--------------------------------------------------------------------------
| Small Screens
|--------------------------------------------------------------------------
*/

@media (max-width: 576px) {

    .dashboard-number {
        font-size: 1.7rem;
    }

    .card-body {
        padding: 1rem;
    }
}
