/* ==========================================
   HR LOGIN PAGE
========================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.insha-hr-login-page {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px 15px;

    background:
        linear-gradient(
            135deg,
            #eef5ff,
            #f8faff
        );
}

.insha-hr-login-card {
    width: 100%;

    max-width: 430px;

    padding: 40px 35px;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.08);
}


/* LOGO */

.insha-hr-logo {
    width: 70px;

    height: 70px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    background: #0d6efd;

    color: #ffffff;

    font-size: 32px;
}


/* HEADING */

.insha-hr-login-card h1 {
    margin: 0;

    text-align: center;

    color: #172033;

    font-size: 28px;

    font-weight: 700;
}

.insha-hr-login-subtitle {
    margin: 8px 0 30px;

    text-align: center;

    color: #747d8c;

    font-size: 14px;
}


/* FORM */

.insha-hr-form-group {
    margin-bottom: 20px;
}

.insha-hr-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #303947;

    font-size: 13px;

    font-weight: 600;
}


/* INPUT */

.insha-hr-input {
    position: relative;
}

.insha-hr-input i {
    position: absolute;

    top: 50%;

    left: 15px;

    transform: translateY(-50%);

    color: #7b8492;

    pointer-events: none;
}

.insha-hr-input input {
    width: 100%;

    height: 50px;

    padding: 0 15px 0 43px;

    border: 1px solid #dce2ea;

    border-radius: 9px;

    outline: none;

    font-size: 14px;

    transition: 0.2s;
}

.insha-hr-input input:focus {
    border-color: #0d6efd;

    box-shadow:
        0 0 0 3px
        rgba(13, 110, 253, 0.10);
}


/* LOGIN BUTTON */

.insha-hr-login-btn {
    width: 100%;

    height: 50px;

    margin-top: 5px;

    border: 0;

    border-radius: 9px;

    background: #0d6efd;

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.insha-hr-login-btn:hover {
    background: #0b5ed7;
}


/* FOOTER */

.insha-hr-login-footer {
    margin-top: 25px;

    text-align: center;

    color: #89919e;

    font-size: 12px;
}


/* MOBILE */

@media (max-width: 576px) {

    .insha-hr-login-page {
        padding: 15px;
    }

    .insha-hr-login-card {
        padding: 32px 22px;
        border-radius: 16px;
    }

    .insha-hr-logo {
        width: 60px;
        height: 60px;
        font-size: 27px;
    }

    .insha-hr-login-card h1 {
        font-size: 24px;
    }

}


/* ==========================================
   HR DASHBOARD
========================================== */

.insha-hr-dashboard {
    min-height: 100vh;
    display: flex;
    background: #f5f7fb;
}

.insha-hr-sidebar {
    width: 250px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background: #172033;
    color: #ffffff;
    z-index: 1000;
}

.insha-hr-sidebar-brand {
    min-height: 75px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.insha-hr-sidebar-logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #0d6efd;
    font-size: 19px;
}

.insha-hr-sidebar-brand strong {
    display: block;
    font-size: 14px;
}

.insha-hr-sidebar-brand small {
    display: block;
    margin-top: 2px;
    color: #9ba5b5;
    font-size: 11px;
}

.insha-hr-sidebar-nav {
    padding: 20px 12px;
}

.insha-hr-sidebar-nav a,
.insha-hr-sidebar-bottom a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 5px;
    border-radius: 8px;
    color: #b8c0ce;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.insha-hr-sidebar-nav a:hover,
.insha-hr-sidebar-nav a.active,
.insha-hr-sidebar-bottom a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.insha-hr-sidebar-bottom {
    margin-top: auto;
    padding: 15px 12px;
}


/* MAIN */

.insha-hr-main {
    width: calc(100% - 250px);
    margin-left: 250px;
    padding: 30px;
}

.insha-hr-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.insha-hr-topbar h1 {
    margin: 0;
    color: #172033;
    font-size: 26px;
    font-weight: 700;
}

.insha-hr-topbar p {
    margin: 5px 0 0;
    color: #7b8492;
    font-size: 13px;
}

.insha-hr-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.insha-hr-user-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9f2ff;
    color: #0d6efd;
}

.insha-hr-user strong,
.insha-hr-user small {
    display: block;
}

.insha-hr-user strong {
    color: #303947;
    font-size: 13px;
}

.insha-hr-user small {
    color: #89919e;
    font-size: 11px;
}


/* WELCOME CARD */

.insha-hr-welcome-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(24,39,75,0.05);
}

.insha-hr-card-icon {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #eaf3ff;
    color: #0d6efd;
}

.insha-hr-welcome-card h3 {
    margin: 0 0 6px;
    color: #172033;
    font-size: 18px;
}

.insha-hr-welcome-card p {
    margin: 0;
    max-width: 600px;
    color: #737d8d;
    font-size: 13px;
    line-height: 1.6;
}


/* BUTTON */

.insha-hr-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    background: #0d6efd;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.insha-hr-primary-btn:hover {
    background: #0b5ed7;
    color: #ffffff;
}


/* STAT CARDS */

.insha-hr-stat-card {
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 13px;
    box-shadow: 0 5px 20px rgba(24,39,75,0.04);
}

.insha-hr-stat-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0f5ff;
    color: #0d6efd;
}

.insha-hr-stat-card span,
.insha-hr-stat-card strong {
    display: block;
}

.insha-hr-stat-card span {
    color: #89919e;
    font-size: 11px;
}

.insha-hr-stat-card strong {
    margin-top: 3px;
    color: #303947;
    font-size: 15px;
}


/* ==========================================
   CREATE APPLICANT FORM
========================================== */

.insha-hr-form-card {
    max-width: 900px;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(24,39,75,0.05);
}

.insha-hr-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #edf0f4;
}

.insha-hr-form-header h3 {
    margin: 0 0 5px;
    color: #172033;
    font-size: 18px;
}

.insha-hr-form-header p {
    margin: 0;
    color: #7b8492;
    font-size: 12px;
}

.insha-hr-form-header > span {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef5ff;
    color: #0d6efd;
    font-size: 20px;
}

.insha-hr-label {
    display: block;
    margin-bottom: 8px;
    color: #303947;
    font-size: 13px;
    font-weight: 600;
}

.insha-hr-control {
    min-height: 48px;
    border-color: #dce2ea;
    border-radius: 8px;
    font-size: 13px;
}

.insha-hr-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.10);
}

.insha-hr-help {
    display: block;
    margin-top: 6px;
    color: #89919e;
    font-size: 11px;
}

.insha-hr-divider {
    border-color: #edf0f4;
    margin: 5px 0 20px;
}

.insha-hr-cancel-btn {
    min-height: 46px;
    margin-left: 8px;
    padding: 10px 20px;
    border-radius: 8px;
}


/* ==========================================
   APPLICANT CREATED
========================================== */

.insha-hr-success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    background: #f5f7fb;
}

.insha-hr-created-card {
    width: 100%;
    max-width: 700px;
    padding: 35px;
    background: #ffffff;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(24,39,75,0.08);
}

.insha-hr-created-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f8ef;
    color: #198754;
    font-size: 30px;
}

.insha-hr-created-card h1 {
    margin: 0;
    color: #172033;
    font-size: 24px;
    font-weight: 700;
}

.insha-hr-credential-box {
    margin: 25px 0;
    padding: 5px 20px;
    border: 1px solid #e1e6ee;
    border-radius: 12px;
    text-align: left;
}

.insha-hr-credential-row,
.insha-hr-password-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
}

.insha-hr-credential-row:last-child {
    border-bottom: 0;
}

.insha-hr-credential-row span,
.insha-hr-password-row span {
    color: #7b8492;
    font-size: 12px;
}

.insha-hr-credential-row strong {
    color: #303947;
    font-size: 13px;
    text-align: right;
}

.insha-hr-password-row {
    padding: 16px;
    margin: 0 -20px;
    background: #fff8e6;
    border-bottom: 0;
}

.insha-hr-password-row strong {
    color: #8a6800;
    font-size: 14px;
    letter-spacing: 1px;
}

.insha-hr-link-box {
    margin-bottom: 20px;
    text-align: left;
}

.insha-hr-link-box label {
    display: block;
    margin-bottom: 8px;
    color: #303947;
    font-size: 12px;
    font-weight: 600;
}

.insha-hr-link-box input {
    font-size: 12px;
}


/* MOBILE */

@media (max-width: 768px) {

    .insha-hr-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
    }

    .insha-hr-dashboard {
        display: block;
    }

    .insha-hr-sidebar-nav {
        display: flex;
        gap: 5px;
        padding: 10px;
        overflow-x: auto;
    }

    .insha-hr-sidebar-nav a {
        margin: 0;
        white-space: nowrap;
    }

    .insha-hr-sidebar-bottom {
        display: none;
    }

    .insha-hr-main {
        width: 100%;
        margin-left: 0;
        padding: 20px 15px;
    }

    .insha-hr-topbar {
        align-items: flex-start;
    }

    .insha-hr-user {
        display: none;
    }

    .insha-hr-welcome-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .insha-hr-primary-btn {
        width: 100%;
    }

    .insha-hr-form-card {
        padding: 20px 15px;
    }

    .insha-hr-created-card {
        padding: 25px 18px;
    }

    .insha-hr-credential-row,
    .insha-hr-password-row {
        flex-direction: column;
        gap: 5px;
    }

    .insha-hr-credential-row strong {
        text-align: left;
    }

    .insha-hr-cancel-btn {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }

}