/* Global UI polish for applicant + admin layouts */

body {
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    color: #2f3e4e;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container,
.container-fluid {
    letter-spacing: .05px;
}

h1, h2, h3, h4, h5, h6 {
    color: #2a3f54;
    font-weight: 600;
}

.x_title h1,
.x_title h2,
.x_title h3,
.x_title h4 {
    font-weight: 600;
    letter-spacing: .15px;
}

.x_title {
    margin-bottom: 14px;
}

p {
    color: #3f5062;
}

.form-group {
    margin-bottom: 14px;
}

label {
    color: #3b4c5e;
    font-weight: 600;
    margin-bottom: 6px;
}

.btn {
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: .1px;
    transition: all .18s ease;
}

.btn:focus,
.btn:active,
.btn:active:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-default {
    background: #f8fafc;
    border-color: #d8e0e8;
    color: #3c4b5a;
}

.btn-default:hover {
    background: #eef3f8;
    border-color: #c8d2dd;
}

.btn-primary {
    background: #2f80ed;
    border-color: #2a73d6;
}

.btn-primary:hover {
    background: #2a73d6;
    border-color: #2569c4;
}

.btn-success {
    background: #26b99a;
    border-color: #21a88b;
}

.btn-success:hover {
    background: #21a88b;
    border-color: #1e987e;
}

.btn-danger {
    background: #eb5757;
    border-color: #d84b4b;
}

.btn-danger:hover {
    background: #d84b4b;
    border-color: #c74141;
}

.btn-lg, .btn-group-lg > .btn {
    border-radius: 7px;
}

.btn + .btn,
.btn-group .btn + .btn {
    margin-left: 6px;
}

.form-control {
    border-radius: 6px;
    border-color: #d9e1e8;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    min-height: 36px;
}

.form-control:focus {
    border-color: #7aa7e0;
    box-shadow: 0 0 0 2px rgba(47, 128, 237, .08);
}

select.form-control {
    padding-right: 28px;
}

.well, .x_panel, .panel {
    border-radius: 8px;
}

.x_panel, .well {
    border-color: #e6ebf0;
    box-shadow: 0 2px 8px rgba(18, 38, 63, .05);
}

.panel-heading,
.x_title {
    background: #fff;
}

.table {
    border-color: #e6ebf0;
    margin-bottom: 14px;
}

.table > thead > tr > th {
    background: #f7f9fc;
    color: #3a4b5c;
    font-weight: 700;
    border-bottom: 1px solid #e2e8ef;
}

.table > tbody > tr > td {
    vertical-align: middle;
}

/* Applicant grid/table consistency (used across many pages) */
.applicant-ui .table.mt10,
.applicant-ui .table.grd-foreign,
.applicant-ui .table {
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.applicant-ui .table .job-th th,
.applicant-ui .table.job-th th,
.applicant-ui thead.job-th th {
    background: #f4f8fd !important;
    color: #2f4256 !important;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 10px !important;
    border-bottom: 1px solid #dbe4ee !important;
}

.applicant-ui .table .job-tb td,
.applicant-ui .table tr.job-tb td,
.applicant-ui .table tbody tr td {
    padding: 9px 10px !important;
    font-size: 13px;
    color: #33475b;
    border-top: 1px solid #edf2f7 !important;
}

.applicant-ui .table tbody tr:hover td {
    background: #fbfdff;
}

.applicant-ui .table td img {
    border-radius: 4px;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fcfdff;
}

.table-hover > tbody > tr:hover {
    background-color: #f5f9ff;
}

.alert {
    border-radius: 6px;
}

.pagination > li > a,
.pagination > li > span {
    border-radius: 4px !important;
    margin: 0 2px;
    color: #3f5163;
}

.pagination > .active > a,
.pagination > .active > span {
    background: #2f80ed;
    border-color: #2f80ed;
}

.nav.side-menu > li > a {
    border-radius: 6px;
    margin: 1px 8px;
}

.nav.side-menu > li.active > a,
.nav.side-menu > li.current-page > a {
    background: rgba(255,255,255,.12);
}

.main_menu_side {
    padding-top: 4px;
}

.well,
.x_panel .x_content,
.panel-body {
    padding-top: 14px;
}

.row + .row {
    margin-top: 6px;
}

@media (max-width: 767px) {
    .btn + .btn,
    .btn-group .btn + .btn {
        margin-left: 0;
        margin-top: 6px;
    }
}

/* Applicant pages responsive improvements */
@media (max-width: 991px) {
    .applicant-ui .container {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .applicant-ui .main-center {
        padding: 14px 12px !important;
    }

    .applicant-ui h3 {
        font-size: 22px;
        line-height: 1.25;
    }

    .applicant-ui .form-group {
        margin-bottom: 12px;
    }

    .applicant-ui .form-control {
        min-height: 40px;
        font-size: 14px;
    }

    .applicant-ui .btn,
    .applicant-ui a.btn,
    .applicant-ui input.btn {
        min-height: 40px;
    }
}

@media (max-width: 767px) {
    .applicant-ui .logo,
    .applicant-ui .navigation {
        width: 100%;
        float: none;
    }

    .applicant-ui .logo {
        text-align: center;
        margin-bottom: 6px;
    }

    .applicant-ui .logo img {
        max-width: 220px;
        width: 100%;
        height: auto;
    }

    .applicant-ui .navigation .navbar {
        min-height: auto;
        margin-bottom: 8px;
    }

    .applicant-ui .navbar-nav,
    .applicant-ui .navbar-nav > li {
        float: none !important;
        display: block;
        width: 100%;
        text-align: left;
    }

    .applicant-ui .navbar-nav > li > a {
        padding: 8px 10px;
        line-height: 1.3;
    }

    .applicant-ui .main .col-sm-2,
    .applicant-ui .main .col-sm-4,
    .applicant-ui .main .col-sm-6,
    .applicant-ui .main .col-sm-8,
    .applicant-ui .main .col-sm-12,
    .applicant-ui .main .col-md-2,
    .applicant-ui .main .col-md-3,
    .applicant-ui .main .col-md-4,
    .applicant-ui .main .col-md-6,
    .applicant-ui .main .col-md-8,
    .applicant-ui .main .col-md-12 {
        width: 100%;
        float: none;
    }

    .applicant-ui .divProfile {
        margin-bottom: 16px !important;
    }

    .applicant-ui .btn,
    .applicant-ui .btn-lg,
    .applicant-ui input.btn,
    .applicant-ui a.btn {
        width: 100%;
    }

    .applicant-ui .pull-right {
        float: none !important;
    }

    .applicant-ui .main-center {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .applicant-ui table {
        display: table !important;
        width: 100%;
    }

    .applicant-ui .table.mt10,
    .applicant-ui .table.grd-foreign,
    .applicant-ui .table {
        min-width: 640px;
    }

    .applicant-ui .flup-img {
        max-width: 100%;
        height: auto;
    }
}

/* Global applicant step progress enhancement */
.applicant-ui .progress {
    height: 12px;
    border-radius: 30px;
    background: #eaf1f8;
    border: 1px solid #dce6f0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}

.applicant-ui .progress .progress-bar {
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    line-height: 12px;
    background: linear-gradient(90deg, #2f80ed 0%, #26b99a 100%);
}

/* Global upload card — neutral surface (matches table/grid cells; no blue tint) */
.applicant-ui .upload-card {
    border: 1px solid #dfe6ee;
    border-radius: 8px;
    background: #fafafa;
    padding: 10px;
    min-height: 118px;
}

.applicant-ui .upload-card .flup {
    width: 100%;
    float: none;
    margin-top: 0;
}

.applicant-ui .upload-card .flup-img {
    float: none;
    width: 62px;
    height: 44px;
    object-fit: cover;
    border: 1px solid #d8e2ec;
    border-radius: 4px;
    margin-top: 6px;
    margin-right: 6px;
    cursor: pointer;
}

.applicant-ui .global-image-preview {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

/*
 * Global upload “Remove” — match Education MBBS grid (red pill + red icon chip).
 * Bootstrap/default link blues are overridden for all pseudo-states.
 */
a.removeImage,
a.removeImage:link,
a.removeImage:visited,
a.removeImage:active {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none !important;
    white-space: nowrap;
    vertical-align: middle;
    background: #fde8ea !important;
    color: #c62828 !important;
    border: 1px solid #e53935 !important;
    border-radius: 6px;
    box-sizing: border-box;
}

a.removeImage:hover,
a.removeImage:focus {
    background: #f8d7da !important;
    color: #b71c1c !important;
    border-color: #c62828 !important;
    text-decoration: none !important;
    cursor: pointer;
}

a.removeImage i.fa {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 10px !important;
    line-height: 16px !important;
    background: #c62828 !important;
    color: #fff !important;
    border-radius: 2px;
}

a.removeImage:link i.fa,
a.removeImage:visited i.fa,
a.removeImage:active i.fa {
    background: #c62828 !important;
    color: #fff !important;
}

a.removeImage:hover i.fa,
a.removeImage:focus i.fa {
    background: #b71c1c !important;
    color: #fff !important;
}

/* Data grid: delete (trash) = red, edit (pencil) = blue */
a.ankDel,
a.ankJobDel,
a.ankDelDisnt,
a.ankDelete {
    color: #c62828 !important;
    text-decoration: none !important;
}

a.ankDel:hover,
a.ankDel:focus,
a.ankJobDel:hover,
a.ankJobDel:focus,
a.ankDelDisnt:hover,
a.ankDelDisnt:focus,
a.ankDelete:hover,
a.ankDelete:focus {
    color: #b71c1c !important;
    text-decoration: none !important;
}

a.ankEdit,
a.ankJobEdit,
a.ankEditDisnt {
    color: #2f80ed !important;
    text-decoration: none !important;
}

a.ankEdit:hover,
a.ankEdit:focus,
a.ankJobEdit:hover,
a.ankJobEdit:focus,
a.ankEditDisnt:hover,
a.ankEditDisnt:focus {
    color: #1a6fc4 !important;
    text-decoration: none !important;
}
