/* =========================
   GLOBAL COLOR (IPIP)
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ipip-primary: #1f5faf;
    --ipip-primary-light: #2ea7db;
    --ipip-green: #4caf50;
    --ipip-bg: #f8fafc;
    --ipip-text: #1f2937;
}

/* =========================
   BODY
========================= */
body {
    background: var(--ipip-bg);
    color: var(--ipip-text);
}

/* =========================
   BLUR EFFECT
========================= */
.layout-wrapper.is-blur {
    filter: blur(3px);
    pointer-events: none;
    transition: filter 0.3s ease;
}
/* =========================
   LOADER IPIP (FINAL)
========================= */

.submit-loader-container {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

/* CENTER */
.loader-container {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
}

/* DOT WRAPPER */
.loader-dots {
    display: flex;
    gap: 14px;
}

/* DOT */
.loader-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate ease-in-out;
}

/* WARNA IPIP */
.loader-dot:nth-child(1) {
    background: #1f5faf; /* biru */
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    background: #f4c20d; /* kuning */
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    background: #4caf50; /* hijau */
    animation-delay: 0.4s;
}

/* ANIMATION */
@keyframes bounce {
    from {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    to {
        transform: translateY(-12px) scale(1.1);
        opacity: 1;
    }
}

/* =========================
   TABLE CHECKBOX
========================= */
th.col-checkbox,
td.col-checkbox {
    width: 40px;
    text-align: center;
    vertical-align: middle;
}

td.col-checkbox input[type="checkbox"] {
    margin: 0 auto;
    display: block;
}

/* =========================
   BUTTON HEADER
========================= */
.btn-header {
    font-size: 13px;
    padding: 8px 14px;
    color: #fff;
    background: var(--ipip-primary) !important;
    border-radius: 6px;
    font-weight: 500;
}

/* =========================
   NAVBAR IPIP STYLE
========================= */
.layout-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* BRAND */
.app-brand-text {
    font-size: 18px;
    color: var(--ipip-primary);
}

/* NAV LINK */
.navbar .nav-link {
    color: #6b7280;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

/* HOVER */
.navbar .nav-link:hover {
    color: var(--ipip-primary);
}

/* ACTIVE */
.navbar .nav-link.active {
    color: var(--ipip-primary) !important;
    font-weight: 600;
    position: relative;
}

/* UNDERLINE ACTIVE */
.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--ipip-primary);
    border-radius: 2px;
}

/* BUTTON LOGIN */
.navbar .btn-primary {
    border-radius: 8px;
    font-weight: 500;
    padding: 6px 16px;
}

/* AVATAR */
.avatar img {
    border: 2px solid #e5e7eb;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .navbar-nav {
        padding-top: 10px;
    }

    .nav-link {
        padding: 10px 0;
    }

    .navbar .nav-link.active::after {
        display: none;
    }

    .app-brand-text {
        font-size: 16px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 12px;
    }

    .loader-dot {
        width: 14px;
        height: 14px;
    }

    .loader-dots {
        gap: 10px;
    }
}

/* HERO */
.hero-section {
    position: relative;
    height: 90vh;
    background: url("../img/hero-industrial.jpg") center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(13, 27, 42, 0.85),
        rgba(13, 27, 42, 0.6)
    );
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.text-accent {
    color: #2ea7db;
}

.hero-desc {
    max-width: 520px;
    opacity: 0.9;
}

/* SECTION */
.section-light {
    padding: 80px 0;
    background: #f8fafc;
}

.section-white {
    padding: 80px 0;
    background: #fff;
}

.section-dark {
    padding: 80px 0;
    background: #0d1b2a;
    color: white;
}

/* LABEL */
.section-label {
    color: #1f5faf;
    font-weight: 600;
}

/* CARD */
.card-soft {
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: 0.2s;
}

.card-soft:hover {
    transform: translateY(-4px);
}

/* IMAGE */
.shadow-soft {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* =========================
   BUTTON HOVER = KUNING
========================= */

/* PRIMARY BUTTON */
.btn-primary {
    background-color: #1f5faf !important;
    border-color: #1f5faf !important;
    color: #fff;
}

/* HOVER → KUNING */
.btn-primary:hover {
    background-color: #f4c20d !important;
    border-color: #f4c20d !important;
    color: #000 !important;
}

/* OUTLINE LIGHT (Company Overview) */
.btn-outline-light {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* HOVER → KUNING */
.btn-outline-light:hover {
    background-color: #f4c20d !important;
    border-color: #f4c20d !important;
    color: #000 !important;
}

/* REMOVE UNGU SHADOW */
.btn:hover,
.btn:focus {
    box-shadow: none !important;
}

.btn {
    transition: all 0.2s ease;
}
/* =========================
   FOOTER IPIP STYLE
========================= */

.footer-ipip {
    background: #0d1b2a;
    color: #fff;
    padding: 60px 0 30px;
}

/* TITLE */
.footer-title {
    font-weight: 700;
    color: #fff;
}

/* DESC */
.footer-desc {
    color: rgba(255, 255, 255, 0.75);
    max-width: 400px;
}

/* INFO */
.footer-info div {
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-info i {
    margin-right: 8px;
    color: #2ea7db;
}

/* HEADING */
.footer-heading {
    color: #2ea7db;
    font-weight: 600;
    margin-bottom: 15px;
}

/* LIST */
.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 8px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.2s;
}

/* HOVER → KUNING */
.footer-list a:hover {
    color: #f4c20d;
}

/* SOCIAL */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #fff;
    transition: 0.2s;
}

.footer-social a:hover {
    background: #f4c20d;
    color: #000;
}

/* NEWSLETTER */
.footer-newsletter {
    display: flex;
    margin-top: 15px;
}

.footer-newsletter input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer-newsletter button {
    background: #1f5faf;
    border: none;
    padding: 8px 12px;
    color: #fff;
}

.footer-newsletter button:hover {
    background: #f4c20d;
    color: #000;
}

/* BOTTOM */
.footer-bottom {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* LINKS */
.footer-links a {
    margin-left: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: #f4c20d;
}

/* BACK TO TOP */
#backToTop {
    cursor: pointer;
    color: #2ea7db;
}

#backToTop:hover {
    color: #f4c20d;
}

.footer-logo {
    width: 28px;
    height: auto;
    object-fit: contain;
}

.footer-logo {
    width: 28px;
    margin-right: 8px;
}

/* =========================
   MAIN SECTION
========================= */
.jobs-main {
    background: #f8fafc;
    min-height: 60vh;
    padding: 50px 0 80px;
}

/* =========================
   CARD JOB
========================= */
.vacancy-card-lg {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.vacancy-card-lg:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

/* subtle border hover */
.vacancy-card-lg::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: 0.2s;
}

.vacancy-card-lg:hover::after {
    border-color: rgba(31, 95, 175, 0.15);
}

/* =========================
   TITLE
========================= */
.job-title {
    font-size: 1rem;
    color: #111827;
    line-height: 1.4;
}

/* =========================
   META
========================= */
.job-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.job-meta i {
    color: #1f5faf;
}

/* =========================
   BADGE
========================= */
.badge-section {
    background: #e3f2fd;
    color: #1f5faf;
    font-size: 0.72rem;
    border-radius: 50px;
}

.badge-open {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.7rem;
    border-radius: 50px;
}

.badge-period {
    background: #fff8e1;
    color: #f4c20d;
    font-size: 0.7rem;
    border-radius: 50px;
}

/* =========================
   FOOTER
========================= */
.job-footer {
    border-color: #f1f5f9;
}

.job-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.job-apply {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f5faf;
}

/* hover kuning */
.vacancy-card-lg:hover .job-apply {
    color: #f4c20d;
}

/* =========================
   EMPTY
========================= */
.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
}

.text-muted {
    font-size: 12px;
    color: #6b7280;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* AUTH LAYOUT */
.auth-wrapper {
    display: flex;
    height: 100vh;
    font-family: "Inter", sans-serif;
}

/* LEFT */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #1f5faf, #2ea7db);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-left-content {
    text-align: center;
    padding: 40px;
}

.auth-left-content .logo {
    width: 70px;
    margin-bottom: 20px;
}

/* RIGHT */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

/* BOX */
.auth-box {
    width: 100%;
    max-width: 380px;
}

.auth-box h3 {
    margin-bottom: 5px;
}

.auth-box p {
    color: #6b7280;
    margin-bottom: 20px;
}

/* FORM */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.form-group input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0 12px;
}

/* BUTTON */
.btn-login {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #1f5faf;
    color: #fff;
    font-weight: 500;
}

.btn-login:hover {
    background: #f4c20d;
    color: #000;
}

/* EXTRA */
.form-extra {
    font-size: 13px;
    margin-bottom: 15px;
}

/* ERROR */
.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* TEXT */
.text-muted {
    font-size: 12px;
    color: #6b7280;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    height: 44px;
    padding-right: 42px; /* space untuk icon */
    border-radius: 10px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
}

.toggle-password:hover {
    color: #1f5faf;
}
.btn-login:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.auth-box {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.auth-logo {
    text-align: center;
    margin-bottom: 20px;
}

.auth-logo img {
    width: 60px;
}

@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        width: 100%;
        padding: 20px;
    }

    .auth-box {
        max-width: 380px;
        margin: auto;
    }

    body {
        background: #f4f6f9;
    }
}

.alert-success {
    background: #e6f9f0;
    color: #0f5132;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}
.footer-link {
    color: #999;
    text-decoration: none;
    transition: 0.2s;
}

.footer-link:hover {
    color: #1f5faf;
}
