/* Compatibility overrides for transitional UI fixes.
   Keep minimal; add mappings from new classes to legacy ones here.
   Example: ensure buttons use Bootstrap 3 styles if conflicting CSS loaded.
*/

/* Example reset for conflicting bootstrap v4 utilities */
.btn {
    /* prefer Bootstrap 3 button baseline */
    border-radius: 4px;
}

/* Ensure container widths remain as in legacy theme */
.container,
.container-fluid {
    max-width: 100%;
}

/* Helpers that used to live inline in inc/head.php */
.flyover {
    left: 150%;
    overflow: hidden;
    position: fixed;
    width: 50%;
    opacity: 0.9;
    z-index: 1050;
    transition: left 0.6s ease-out 0s;
}

.flyover-centered {
    top: 50%;
    transform: translate(-50%, -50%);
}

html {
    width: 100vw;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.paragraph {
    width: 150%;
}

.box-headers {
    margin-bottom: 7px;
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.19);
    width: 100%;
    border-radius: 8px;
    padding: 15px;
}

.box-containers {
    margin-bottom: 5%;
    /* box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.19); */
    width: 100%;
    border-radius: 8px;
    /* border-top: 3px solid blue; */
    padding: 15px;
}

/* Add specific overrides as issues are found during testing */

/* Global typography baseline */
:root {
    --imtihan-ui-font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --imtihan-ui-font-size: 14px;
}

body {
    font-family: var(--imtihan-ui-font-family);
    font-size: var(--imtihan-ui-font-size);
    line-height: 1.5;
}

input,
button,
select,
textarea,
.form-control,
.btn,
label,
.control-label,
.breadcrumb,
.nav-list>li>a,
.widget-header,
.table,
th,
td {
    font-family: var(--imtihan-ui-font-family);
    font-size: var(--imtihan-ui-font-size);
}

/* Bootstrap 3 -> Bootstrap 5 bridge classes still used in legacy templates */
.btn-default {
    --bs-btn-color: #212529;
    --bs-btn-bg: #f8f9fa;
    --bs-btn-border-color: #ced4da;
    --bs-btn-hover-color: #212529;
    --bs-btn-hover-bg: #e9ecef;
    --bs-btn-hover-border-color: #adb5bd;
    --bs-btn-focus-shadow-rgb: 173, 181, 189;
    --bs-btn-active-color: #212529;
    --bs-btn-active-bg: #dee2e6;
    --bs-btn-active-border-color: #adb5bd;
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.label {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.label-default {
    background-color: #6c757d;
}

.label-primary {
    background-color: #0d6efd;
}

.label-success {
    background-color: #198754;
}

.label-info {
    color: #212529;
    background-color: #0dcaf0;
}

.label-warning {
    color: #212529;
    background-color: #ffc107;
}

.label-danger {
    background-color: #dc3545;
}

.navbar-fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.pull-right {
    float: right !important;
}

.pull-left {
    float: left !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.help-block {
    display: block;
    margin-top: 0.25rem;
    margin-bottom: 0;
    color: #6c757d;
}

.form-check > label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 1rem;
    font-weight: 400;
}

.form-check .form-check-input {
    margin-top: 0;
}

.form-check .lbl {
    margin: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-horizontal .form-group::before,
.form-horizontal .form-group::after {
    display: table;
    content: " ";
}

.form-horizontal .form-group::after {
    clear: both;
}

.control-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .form-horizontal .control-label {
        margin-bottom: 0;
        padding-top: calc(0.375rem + 1px);
        text-align: right;
    }
}

.well {
    min-height: 20px;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.btn-xs,
.btn-group-xs > .btn {
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    line-height: 1.25;
    border-radius: 0.2rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-block + .btn-block {
    margin-top: 0.5rem;
}

.input-lg,
.form-control.input-lg {
    height: 46px;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.3333333;
    border-radius: 0.5rem;
}

textarea.input-lg,
select[multiple].input-lg {
    height: auto;
}

select.input-lg {
    height: 46px;
    line-height: 46px;
}

.input-group-btn {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 1%;
    white-space: nowrap;
    vertical-align: middle;
}

.input-group-btn > .btn {
    position: relative;
    z-index: 2;
}

.input-group-btn:not(:first-child) > .btn,
.input-group-btn:not(:first-child) > .btn-group > .btn {
    margin-left: -1px;
}

.input-group .input-group-btn > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.navbar-default {
    --bs-navbar-color: rgba(255, 255, 255, 0.85);
    --bs-navbar-hover-color: #fff;
    --bs-navbar-active-color: #fff;
    --bs-navbar-brand-color: #fff;
    --bs-navbar-brand-hover-color: #fff;
}

/* Auth pages */
.imtihan-auth-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(148, 188, 224, 0.38) 0, rgba(148, 188, 224, 0) 34%),
        radial-gradient(circle at bottom right, rgba(197, 223, 245, 0.45) 0, rgba(197, 223, 245, 0) 32%),
        linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
    color: #35536f;
    font-family: var(--imtihan-ui-font-family);
}

.imtihan-auth-page .main-container,
.imtihan-auth-page .main-content {
    min-height: 100vh;
}

.imtihan-auth-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
}

.imtihan-auth-card {
    border: 1px solid #d7e1ee;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 64px rgba(28, 54, 92, 0.12);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.imtihan-auth-main {
    padding: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #f9fcff 100%);
}

.imtihan-auth-side {
    padding: 32px;
    background: linear-gradient(180deg, rgba(244, 249, 255, 0.9) 0%, rgba(238, 244, 251, 0.96) 100%);
    border-left: 1px solid #e1eaf4;
    height: 100%;
}

.imtihan-auth-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #cfe0f1;
    border-radius: 999px;
    background: #fff;
    color: #35536f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.imtihan-auth-title {
    margin: 14px 0 8px;
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #2f4f72;
}

.imtihan-auth-subtitle {
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 1.7;
    color: #6a8097;
}

.imtihan-auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    margin: 0 auto 12px;
    padding: 12px;
    border: 1px solid #d7e1ee;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fe 100%);
    box-shadow: 0 12px 28px rgba(40, 80, 126, 0.08);
}

.imtihan-auth-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.imtihan-auth-form .form-control,
.imtihan-auth-form .form-select {
    min-height: 48px;
    border: 1px solid #d7e1ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    color: #35536f;
}

.imtihan-auth-form .form-control:focus,
.imtihan-auth-form .form-select:focus {
    border-color: #8eb8de;
    box-shadow: 0 0 0 0.16rem rgba(122, 165, 214, 0.16);
}

.imtihan-auth-form .input-icon > .ace-icon,
.imtihan-auth-form .input-icon > .field-icon {
    color: #7d91a6;
}

.imtihan-auth-form .block {
    margin-bottom: 14px;
}

.imtihan-auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.imtihan-auth-actions .btn {
    min-height: 46px;
    padding: 0.78rem 1rem;
    border-radius: 12px;
    font-weight: 700;
}

.imtihan-auth-actions .btn-success,
.imtihan-auth-actions .btn-primary,
.imtihan-auth-actions .btn-info {
    background: linear-gradient(180deg, #7fb0db 0%, #72a5d2 100%);
    border-color: #72a5d2;
    color: #fff;
}

.imtihan-auth-actions .btn-success:hover,
.imtihan-auth-actions .btn-primary:hover,
.imtihan-auth-actions .btn-info:hover,
.imtihan-auth-actions .btn-success:focus,
.imtihan-auth-actions .btn-primary:focus,
.imtihan-auth-actions .btn-info:focus {
    background: linear-gradient(180deg, #74a7d6 0%, #6798c6 100%);
    border-color: #6798c6;
    color: #fff;
}

.imtihan-auth-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d7e1ee;
    border-radius: 12px;
    background: #fff;
    color: #35536f;
    cursor: pointer;
}

.imtihan-auth-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e3ebf4;
    font-size: 12px;
    line-height: 1.65;
    color: #6a8097;
}

.imtihan-auth-panel {
    border: 1px solid #d7e1ee;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(29, 61, 97, 0.08);
}

.imtihan-auth-panel-head {
    padding: 14px 18px;
    border-bottom: 1px solid #d7e1ee;
    background: linear-gradient(180deg, #f6f9ff 0%, #eef4fb 100%);
}

.imtihan-auth-panel-head h4,
.imtihan-auth-panel-head h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #26496d;
}

.imtihan-auth-panel-body {
    padding: 18px;
}

.imtihan-auth-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #5a6f85;
}

.imtihan-auth-list li {
    margin-bottom: 10px;
    line-height: 1.65;
}

.imtihan-auth-list li:last-child {
    margin-bottom: 0;
}

.imtihan-auth-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.imtihan-auth-store {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 8px;
    border: 1px solid #d8e4f1;
    border-radius: 10px;
    background: #fdfefe;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.imtihan-auth-store:hover,
.imtihan-auth-store:focus {
    border-color: #8fb2d8;
    box-shadow: 0 8px 16px rgba(47, 97, 149, 0.14);
    transform: translateY(-1px);
}

.imtihan-auth-store img {
    width: 75%;
    object-fit: contain;
}

#alerts.imtihan-auth-alerts,
.imtihan-auth-alerts {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: min(720px, calc(100vw - 24px));
}

.imtihan-auth-result {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.imtihan-auth-result-card {
    width: min(1080px, 100%);
    border: 1px solid #d7e1ee;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 64px rgba(28, 54, 92, 0.12);
    overflow: hidden;
}

.imtihan-auth-result-main {
    padding: 40px;
}

.imtihan-auth-result-visual {
    padding: 36px;
    background: linear-gradient(180deg, rgba(244, 249, 255, 0.9) 0%, rgba(238, 244, 251, 0.96) 100%);
    border-left: 1px solid #e1eaf4;
}

.imtihan-auth-result-code {
    margin: 0 0 10px;
    font-size: clamp(52px, 8vw, 88px);
    line-height: 1;
    font-weight: 800;
    color: #7aa5cf;
    letter-spacing: -0.04em;
}

.imtihan-auth-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.imtihan-auth-result-actions .btn {
    min-height: 46px;
    padding: 0.8rem 1.1rem;
    border-radius: 12px;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .imtihan-auth-shell {
        width: calc(100% - 20px);
        padding: 10px 0;
    }

    .imtihan-auth-card,
    .imtihan-auth-result-card {
        border-radius: 24px;
    }

    .imtihan-auth-main,
    .imtihan-auth-side,
    .imtihan-auth-result-main,
    .imtihan-auth-result-visual {
        padding: 24px;
    }

    .imtihan-auth-side,
    .imtihan-auth-result-visual {
        border-left: 0;
        border-top: 1px solid #e1eaf4;
    }

    .imtihan-auth-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Student exam entry pages */
.imtihan-student-page,
.imtihan-student-page body {
    background: linear-gradient(180deg, #f6f9fd 0%, #eef3f9 100%);
}

.imtihan-student-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 10px 14px;
}

.imtihan-student-card {
    border: 1px solid #d7e1ee;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(29, 61, 97, 0.08);
    overflow: hidden;
}

.imtihan-student-card + .imtihan-student-card {
    margin-top: 12px;
}

.imtihan-student-card-body {
    padding: 24px;
}

.imtihan-student-title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #2f4f72;
    letter-spacing: -0.02em;
}

.imtihan-student-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #6a8097;
}

.imtihan-student-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 118px;
    margin: 0 auto 16px;
    padding: 10px;
    border: 1px solid #d7e1ee;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 100%);
    box-shadow: 0 12px 24px rgba(40, 80, 126, 0.08);
}

.imtihan-student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.imtihan-student-name {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #2f4f72;
}

.imtihan-student-id {
    margin-top: 8px;
    color: #6a8097;
    font-size: 14px;
    font-weight: 600;
}

.imtihan-student-divider {
    margin: 18px auto 0;
    width: min(320px, 82%);
    border-top: 1px solid #d7e1ee;
}

.imtihan-student-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.imtihan-student-meta-card {
    padding: 14px 16px;
    border: 1px solid #e1e9f3;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
}

.imtihan-student-meta-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7a8ea3;
}

.imtihan-student-meta-value {
    font-size: 18px;
    font-weight: 700;
    color: #2f4f72;
    word-break: break-word;
}

.imtihan-student-section-head {
    margin-bottom: 18px;
    text-align: center;
}

.imtihan-student-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #cfe0f1;
    border-radius: 999px;
    background: #fff;
    color: #35536f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.imtihan-student-token-status {
    padding: 16px;
    border: 1px solid #e1e9f3;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
    color: #35536f;
}

.imtihan-student-token-state {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.imtihan-student-token-state-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6c8298;
}

.imtihan-student-token-state-copy {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #486277;
}

.imtihan-student-token-state.is-warning .imtihan-student-token-state-title,
.imtihan-student-token-state.is-warning .imtihan-student-token-state-copy {
    color: #8a6120;
}

.imtihan-student-token-state.is-danger .imtihan-student-token-state-title,
.imtihan-student-token-state.is-danger .imtihan-student-token-state-copy {
    color: #9b4b54;
}

.imtihan-student-token-state.is-success .imtihan-student-token-state-title {
    color: #4f6f2f;
}

.imtihan-student-token-code {
    margin: 0;
    font-size: clamp(34px, 6vw, 46px);
    line-height: 1.1;
    font-weight: 800;
    color: #2f4f72;
    letter-spacing: -0.04em;
}

.imtihan-student-token-code-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6a8097;
}

.imtihan-student-input {
    min-height: 50px;
    border: 1px solid #d7e1ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    color: #35536f;
    font-size: 15px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.imtihan-student-input:focus {
    border-color: #8eb8de;
    box-shadow: 0 0 0 0.16rem rgba(122, 165, 214, 0.16);
}

.imtihan-student-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.imtihan-student-actions.imtihan-student-actions-inline-mobile {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.imtihan-student-actions.imtihan-student-actions-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.imtihan-student-actions.imtihan-student-actions-inline-mobile .btn {
    min-width: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 13px;
}

.imtihan-student-actions .btn {
    min-height: 46px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.imtihan-student-list {
    display: grid;
    gap: 10px;
}

.imtihan-student-list-item {
    display: grid;
    grid-template-columns: minmax(120px, 35%) 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e7edf5;
}

.imtihan-student-list-item:last-child {
    border-bottom: 0;
}

.imtihan-student-list-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7a8ea3;
}

.imtihan-student-list-value {
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #2f4f72;
    word-break: break-word;
}

.imtihan-student-note {
    padding: 14px 16px;
    border: 1px solid #e1e9f3;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
    color: #6a8097;
    font-size: 13px;
    line-height: 1.6;
}

.imtihan-student-score {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 4px;
    font-size: clamp(40px, 8vw, 58px);
    line-height: 1;
    font-weight: 800;
    color: #2f4f72;
    letter-spacing: -0.04em;
}

.imtihan-student-score-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #cfe0f1;
    border-radius: 999px;
    background: #fff;
    color: #35536f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.imtihan-student-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.imtihan-student-kpi-card {
    padding: 14px 16px;
    border: 1px solid #e1e9f3;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
    text-align: center;
}

.imtihan-student-kpi-title {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7a8ea3;
}

.imtihan-student-kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: #2f4f72;
}

.imtihan-student-table-shell {
    border: 1px solid #d7e1ee;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(29, 61, 97, 0.08);
    overflow: hidden;
}

.imtihan-student-table-shell .table-responsive {
    border: 0;
    border-radius: 0;
}

.imtihan-student-empty {
    padding: 20px;
    border: 1px dashed #cfdceb;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
    text-align: center;
    color: #6a8097;
}

.imtihan-student-table-actions {
    display: grid;
    gap: 8px;
    min-width: 150px;
}

.imtihan-student-table-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.imtihan-student-table-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.imtihan-student-table-status.is-ready {
    background: #e9f7ee;
    color: #2f7a49;
}

.imtihan-student-table-status.is-pending {
    background: #fff5df;
    color: #9a6a18;
}

.imtihan-student-table-status.is-finished {
    background: #edf3fb;
    color: #4d6783;
}

.imtihan-student-table-status.is-missed {
    background: #fff0f0;
    color: #a3515a;
}

.imtihan-student-table-status.is-empty {
    background: #f4f7fb;
    color: #71859a;
}

@media (max-width: 767.98px) {
    .imtihan-student-shell {
        padding-left: 6px;
        padding-right: 6px;
    }

    .imtihan-student-card-body {
        padding: 18px 16px;
    }

    .imtihan-student-name {
        font-size: 22px;
    }

    .imtihan-student-title {
        font-size: 20px;
    }

    .imtihan-student-meta {
        grid-template-columns: 1fr;
    }

    .imtihan-student-kpi-grid {
        grid-template-columns: 1fr;
    }

    .imtihan-student-actions {
        grid-template-columns: 1fr;
    }

    .imtihan-student-actions.imtihan-student-actions-inline-mobile {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .imtihan-student-actions.imtihan-student-actions-inline-mobile .btn {
        min-height: 42px;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        font-size: 12px;
        letter-spacing: 0;
    }

    .imtihan-student-actions.imtihan-student-actions-duo {
        grid-template-columns: 1fr;
    }

    .imtihan-student-table-actions {
        min-width: 130px;
    }

    .imtihan-student-list-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .imtihan-student-list-value {
        text-align: left;
    }
}

.navbar-toggle {
    position: relative;
    float: right;
    padding: 9px 10px;
    margin-top: 8px;
    margin-right: 15px;
    margin-bottom: 8px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: currentColor;
}

.navbar-toggle .icon-bar + .icon-bar {
    margin-top: 4px;
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    border: 0;
    background: transparent;
}

.close:hover,
.close:focus {
    color: #000;
    opacity: 0.75;
    text-decoration: none;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-justify {
    text-align: justify !important;
}

.page-header {
    padding-bottom: 9px;
    margin: 40px 0 20px;
    border-bottom: 1px solid #dee2e6;
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6 {
    margin-top: 0;
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px dashed;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.visible-xs,
.visible-sm,
.visible-md,
.visible-lg {
    display: none !important;
}

@media (max-width: 767.98px) {
    .hidden-xs {
        display: none !important;
    }
    .visible-xs {
        display: block !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hidden-sm {
        display: none !important;
    }
    .visible-sm {
        display: block !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hidden-md {
        display: none !important;
    }
    .visible-md {
        display: block !important;
    }
}

@media (min-width: 1200px) {
    .hidden-lg {
        display: none !important;
    }
    .visible-lg {
        display: block !important;
    }
}

/* Bootstrap 3 grid compatibility */
[class^="col-xs-"],
[class*=" col-xs-"] {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    float: left;
}

.col-xs-1 { width: 8.33333333%; }
.col-xs-2 { width: 16.66666667%; }
.col-xs-3 { width: 25%; }
.col-xs-4 { width: 33.33333333%; }
.col-xs-5 { width: 41.66666667%; }
.col-xs-6 { width: 50%; }
.col-xs-7 { width: 58.33333333%; }
.col-xs-8 { width: 66.66666667%; }
.col-xs-9 { width: 75%; }
.col-xs-10 { width: 83.33333333%; }
.col-xs-11 { width: 91.66666667%; }
.col-xs-12 { width: 100%; }

@media (max-width: 767.98px) {
    [class^="col-sm-"],
    [class*=" col-sm-"],
    [class^="col-md-"],
    [class*=" col-md-"],
    [class^="col-lg-"],
    [class*=" col-lg-"] {
        float: none;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-left: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    [class^="col-md-"],
    [class*=" col-md-"],
    [class^="col-lg-"],
    [class*=" col-lg-"] {
        float: none;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-left: 0 !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    [class^="col-lg-"],
    [class*=" col-lg-"] {
        float: none;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-left: 0 !important;
    }
}

.col-sm-offset-2,
.col-md-offset-3 {
    margin-left: 0;
}

@media (min-width: 768px) {
    .col-sm-offset-2 {
        margin-left: 16.66666667%;
    }
}

@media (min-width: 992px) {
    .col-md-offset-3 {
        margin-left: 25%;
    }
}
