/* ============================================================
   TPI - BATAP THEME CSS
   Font default: Arial | Font judul: Astronauta Script Regular (via CDN/Google)
   Warna: Hijau (#1ab870, #2ecc71), Ungu (#7c3aed, #8b5cf6), Orange (#f97316)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

/* Astronauta Script - menggunakan Dancing Script sebagai pengganti yang tersedia */
.font-judul, .tpi-title {
    font-family: 'Dancing Script', cursive !important;
}

/* ========================
   LOGIN & LOGOUT PAGE
   ======================== */
body.tpi-login-page,
body.tpi-logout-page {
    font-family: Arial, Helvetica, sans-serif !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
    background-color: #f0f4f8;
}

/* Background utama dengan SVG ilustrasi kapal & ikan */
.tpi-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Blob hijau kiri atas */
.tpi-bg .blob-green-tl {
    position: absolute;
    top: -60px; left: -60px;
    width: 340px; height: 320px;
    background: radial-gradient(ellipse at 30% 30%, #1ab870 0%, #16a561 60%, transparent 100%);
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    opacity: 0.92;
}

/* Blob orange kanan atas */
.tpi-bg .blob-orange-tr {
    position: absolute;
    top: -40px; right: -60px;
    width: 280px; height: 250px;
    background: radial-gradient(ellipse at 70% 30%, #f97316 0%, #ea6c10 60%, transparent 100%);
    border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
    opacity: 0.90;
}

/* Gelombang ungu bawah */
.tpi-bg .wave-purple {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 160px;
    background: linear-gradient(180deg, transparent 0%, #7c3aed 100%);
    clip-path: ellipse(65% 100% at 50% 100%);
}

.tpi-bg .wave-purple-2 {
    position: absolute;
    bottom: 0; left: -5%; right: -5%;
    height: 100px;
    background: #5b21b6;
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

/* Dekorasi titik-titik grid */
.tpi-bg .dots-tl {
    position: absolute;
    top: 30px; left: 30px;
    width: 80px; height: 60px;
    background-image: radial-gradient(circle, #0e7a50 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.5;
}
.tpi-bg .dots-tr {
    position: absolute;
    top: 30px; right: 30px;
    width: 80px; height: 60px;
    background-image: radial-gradient(circle, #0e7a50 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.5;
}
.tpi-bg .dots-bl {
    position: absolute;
    bottom: 100px; left: 20px;
    width: 80px; height: 60px;
    background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.35;
}
.tpi-bg .dots-br {
    position: absolute;
    bottom: 100px; right: 20px;
    width: 80px; height: 60px;
    background-image: radial-gradient(circle, #fff 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.35;
}

/* Lingkaran dekoratif */
.tpi-bg .circle-green-1 {
    position: absolute;
    top: 45%; left: 6%;
    width: 40px; height: 40px;
    border: 3px solid #1ab870;
    border-radius: 50%;
    opacity: 0.5;
}
.tpi-bg .circle-orange-1 {
    position: absolute;
    top: 25%; right: 10%;
    width: 32px; height: 32px;
    border: 3px solid #f97316;
    border-radius: 50%;
    opacity: 0.6;
}
.tpi-bg .circle-purple-1 {
    position: absolute;
    bottom: 120px; left: 50%;
    width: 28px; height: 28px;
    border: 2px solid #f97316;
    border-radius: 50%;
    opacity: 0.5;
    transform: translateX(-50%);
}
.tpi-bg .circle-white-1 {
    position: absolute;
    bottom: 150px; right: 18%;
    width: 38px; height: 38px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
}

/* Burung camar (tanda ~) */
.tpi-bg .birds {
    position: absolute;
    top: 18%; left: 22%;
    font-size: 22px;
    color: #0e7a50;
    letter-spacing: 6px;
    opacity: 0.7;
    transform: rotate(-10deg);
}

/* Kapal - kiri bawah (SVG inline) */
.tpi-bg .boat-left {
    position: absolute;
    bottom: 110px;
    left: 0;
    width: 38%;
    opacity: 0.25;
}

/* Pasar ikan - kanan bawah */
.tpi-bg .market-right {
    position: absolute;
    bottom: 110px;
    right: 0;
    width: 36%;
    opacity: 0.20;
}

/* Garis squiggly bawah kanan */
.tpi-bg .squiggle-br {
    position: absolute;
    bottom: 120px; right: 120px;
    opacity: 0.4;
}

/* ========================
   LOGIN CARD
   ======================== */
.tpi-login-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.tpi-login-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.13), 0 2px 10px rgba(0,0,0,0.08);
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
}

.tpi-login-card .tpi-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 14px;
    display: block;
}

.tpi-login-card .tpi-app-name {
    font-family: 'Dancing Script', cursive !important;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.tpi-login-card .tpi-welcome {
    color: #1ab870;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
    font-family: Arial, Helvetica, sans-serif;
}

.tpi-login-card .tpi-subtitle {
    color: #666;
    font-size: 0.82rem;
    margin-bottom: 10px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
}

/* 3 titik dekoratif */
.tpi-login-card .tpi-dots-deco,
.tpi-logout-card .tpi-dots-deco {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}
.tpi-login-card .tpi-dots-deco span,
.tpi-logout-card .tpi-dots-deco span {
    display: inline-block;
    width: 20px;
    height: 4px;
    border-radius: 2px;
}
.tpi-login-card .tpi-dots-deco .d1, .tpi-logout-card .tpi-dots-deco .d1 { background: #1ab870; }
.tpi-login-card .tpi-dots-deco .d2, .tpi-logout-card .tpi-dots-deco .d2 { background: #f97316; }
.tpi-login-card .tpi-dots-deco .d3, .tpi-logout-card .tpi-dots-deco .d3 { background: #7c3aed; }

/* Input fields */
.tpi-login-card .tpi-input-group {
    position: relative;
    margin-bottom: 14px;
}
.tpi-login-card .tpi-input-group .tpi-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 15px;
    z-index: 2;
}
.tpi-login-card .tpi-input-group input {
    width: 100%;
    padding: 11px 40px 11px 40px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.tpi-login-card .tpi-input-group input:focus {
    border-color: #1ab870;
    background: #fff;
}
.tpi-login-card .tpi-input-group input::placeholder {
    color: #bbb;
}
.tpi-login-card .tpi-input-group .tpi-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    font-size: 15px;
    z-index: 2;
}

/* Tombol Login */
.tpi-login-card .tpi-btn-login {
    display: block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, #1ab870 0%, #16c868 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.1s;
}
.tpi-login-card .tpi-btn-login:hover {
    background: linear-gradient(90deg, #16a561 0%, #1ab870 100%);
    transform: translateY(-1px);
}
.tpi-login-card .tpi-btn-login i {
    margin-right: 6px;
}

/* Link lupa password */
.tpi-login-card .tpi-forgot {
    color: #7c3aed;
    font-size: 0.85rem;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    display: block;
    margin-bottom: 20px;
}
.tpi-login-card .tpi-forgot:hover {
    text-decoration: underline;
}

/* Info security bawah */
.tpi-login-card .tpi-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    font-size: 0.79rem;
    color: #888;
    font-family: Arial, Helvetica, sans-serif;
}
.tpi-login-card .tpi-security-note i {
    color: #1ab870;
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Flash messages di dalam card */
.tpi-login-card .tpi-alerts {
    margin-bottom: 12px;
    text-align: left;
}
.tpi-login-card .tpi-alerts .alert {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 6px;
}

/* ========================
   LOGOUT CARD
   ======================== */
.tpi-logout-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.13), 0 2px 10px rgba(0,0,0,0.08);
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
}

.tpi-logout-card .tpi-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 14px;
    display: block;
}

.tpi-logout-card .tpi-app-name {
    font-family: 'Dancing Script', cursive !important;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.tpi-logout-card .tpi-logout-question {
    color: #444;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.tpi-logout-card .tpi-logout-subtitle {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.tpi-logout-card .tpi-btn-batal {
    display: inline-block;
    padding: 11px 28px;
    background: #e5e7eb;
    color: #555;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.2s;
    text-decoration: none;
}
.tpi-logout-card .tpi-btn-batal:hover {
    background: #d1d5db;
    color: #333;
    text-decoration: none;
}

.tpi-logout-card .tpi-btn-logout {
    display: inline-block;
    padding: 11px 28px;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}
.tpi-logout-card .tpi-btn-logout:hover {
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
}

/* ========================
   BASE3.1 - SIDEBAR & HEADER TEMA TPI
   ======================== */
body.tpi-base-page {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Override header */
body.tpi-base-page header {
    background: linear-gradient(135deg, #1ab870 0%, #16a561 50%, #0f7a47 100%) !important;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

/* Logo area di header - teks judul hijau */
body.tpi-base-page header .tpi-brand-title {
    font-family: 'Dancing Script', cursive !important;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.1;
}
body.tpi-base-page header .tpi-brand-subtitle {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.9) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    display: block;
}

/* Sidebar override */
body.tpi-base-page aside {
    background-color: #ffffff !important;
    background-image: url('../img/1783926849ed46.jpg') !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    background-size: cover !important;
    border-right: none !important;
    border-right: 2px solid #e0f5ec !important;
}

body.tpi-base-page aside nav * {
    color: #1a4a35 !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Menu item aktif */
body.tpi-base-page aside nav ul > li.active > a,
body.tpi-base-page aside nav ul > li > a:hover {
    color: #fff !important;
    background-color: #1ab870 !important;
    border-radius: 8px;
    padding: 8px 12px !important;
}

/* Menu item "Beranda" aktif - style hijau solid */
body.tpi-base-page .tpi-menu-active > a,
body.tpi-base-page .tpi-menu-active > a:hover {
    background-color: #1ab870 !important;
    color: #fff !important;
    border-radius: 8px;
}

/* Submenu background */
body.tpi-base-page aside nav ul li > ul {
    background-color: transparent !important;
}

/* Footer sidebar */
body.tpi-base-page .footer-side {
    color: #1ab870 !important;
}

/* Dekorasi background konten utama */
body.tpi-base-page .tpi-content-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
body.tpi-base-page .tpi-content-bg .cb-dots-tr {
    position: absolute;
    top: 80px; right: 30px;
    width: 100px; height: 80px;
    background-image: radial-gradient(circle, #cde9de 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.7;
}
body.tpi-base-page .tpi-content-bg .cb-blob-tr {
    position: absolute;
    top: 30px; right: 40px;
    width: 120px; height: 100px;
    background: radial-gradient(ellipse, rgba(139,196,173,0.18) 0%, transparent 70%);
    border-radius: 50%;
}
body.tpi-base-page .tpi-content-bg .cb-bird {
    position: absolute;
    top: 160px; right: 160px;
    color: #1ab870;
    font-size: 18px;
    opacity: 0.4;
    letter-spacing: 5px;
    transform: rotate(-8deg);
}
body.tpi-base-page .tpi-content-bg .cb-wave-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, rgba(26,184,112,0.06) 100%);
}
body.tpi-base-page .tpi-content-bg .cb-orange-corner {
    position: absolute;
    bottom: 30px; right: 60px;
    width: 80px; height: 80px;
    background-image: radial-gradient(circle, #f97316 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.3;
}
body.tpi-base-page .tpi-content-bg .cb-circle-teal {
    position: absolute;
    top: 90%; right: 12%;
    width: 50px; height: 50px;
    border: 3px solid rgba(26,184,112,0.3);
    border-radius: 50%;
}

/* Area konten utama relatif di atas background */
body.tpi-base-page #content {
    position: relative;
    z-index: 1;
}

/* TPI RAPID Home / Beranda Logo Banner */
.tpi-home-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
}
.tpi-home-logo {
    width: 600px;
    max-width: 90%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.06));
    animation: fadeIn 0.6s ease-out;
}

/* Home page - feature cards seperti image 2 */
.tpi-feature-cards {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 60px;
}
.tpi-feature-card {
    text-align: center;
    max-width: 200px;
}
.tpi-feature-card .tpi-fc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 10px;
    color: #fff;
}
.tpi-feature-card .tpi-fc-icon.green  { background-color: #1ab870; }
.tpi-feature-card .tpi-fc-icon.orange { background-color: #f97316; }
.tpi-feature-card .tpi-fc-icon.purple { background-color: #7c3aed; }
.tpi-feature-card .tpi-fc-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-family: Arial, Helvetica, sans-serif;
}
.tpi-feature-card.green  .tpi-fc-title { color: #1ab870; }
.tpi-feature-card.orange .tpi-fc-title { color: #f97316; }
.tpi-feature-card.purple .tpi-fc-title { color: #7c3aed; }
.tpi-feature-card .tpi-fc-desc {
    font-size: 0.80rem;
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .tpi-login-card, .tpi-logout-card { padding: 28px 18px; }
    .tpi-login-card .tpi-logo,
    .tpi-logout-card .tpi-logo {
        width: 280px;
        max-width: 100%;
        height: auto;
    }
    .tpi-home-wrapper {
        min-height: calc(100vh - 160px);
        padding: 10px;
    }
    .tpi-home-logo {
        width: 280px;
        max-width: 90%;
    }
    .tpi-login-card .tpi-app-name { font-size: 1.6rem; }
    .tpi-bg .boat-left, .tpi-bg .market-right { display: none; }
}

/* Background login dan logout dari image */
.tpi-bg {
    background: url('../img/bg_login.jpg') no-repeat center center fixed;
    background-size: cover;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Base styles untuk home */
.tpi-hero-banner {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}
.tpi-hero-banner img {
    width: 90px;
    margin-bottom: 15px;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.1));
}
.tpi-hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.2rem;
    color: #1a4a35;
    margin-bottom: 5px;
    font-weight: 700;
}
.tpi-hero-subtitle {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.tpi-hero-org {
    font-weight: 600;
    color: #1ab870;
    font-size: 1rem;
    background: rgba(26,184,112,0.1);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tambahan styling feature card untuk home */
.tpi-feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 16px;
    padding: 20px 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    width: 220px;
    margin-bottom: 20px;
}
.tpi-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26,184,112,0.15);
    background: rgba(255, 255, 255, 0.9);
}
.tpi-feature-card a {
    text-decoration: none !important;
    display: block;
}
.tpi-feature-card img.icon-modul {
    filter: brightness(0) invert(1);
}

/* ========================
   HOME PAGE - /webr
   ======================== */
.tpi-home-wrapper {
    position: relative;
    min-height: calc(100vh - 80px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 3 feature cards horizontal */
.tpi-feature-cards-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.tpi-fcard {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 28px 28px 22px;
    width: 220px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1.5px solid rgba(0,0,0,0.05);
}
.tpi-fcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.tpi-fcard-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.tpi-fcard-green .tpi-fcard-icon { background: #e8f8f1; }
.tpi-fcard-orange .tpi-fcard-icon { background: #fff4ed; }
.tpi-fcard-purple .tpi-fcard-icon { background: #f0ebff; }

.tpi-fcard-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: Arial, Helvetica, sans-serif;
}
.tpi-fcard-desc {
    font-size: 0.82rem;
    color: #777;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

/* Bottom illustrations area */
.tpi-home-illustrations {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    pointer-events: none;
    z-index: 1;
}

/* Waves */
.tpi-wave-green {
    position: absolute;
    bottom: 90px;
    left: 0;
    right: 0;
    height: 180px;
}
.tpi-wave-green svg { width: 100%; height: 100%; }

.tpi-wave-purple {
    position: absolute;
    bottom: 45px;
    left: 0;
    right: 0;
    height: 130px;
}
.tpi-wave-purple svg { width: 100%; height: 100%; }

.tpi-wave-orange {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
}
.tpi-wave-orange svg { width: 100%; height: 100%; }

/* Ilustrasi kapal kiri */
.tpi-illus-boat {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 340px;
    height: 220px;
}
.tpi-illus-boat svg { width: 100%; height: 100%; }

/* Ilustrasi market/timbangan kanan */
.tpi-illus-market {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 340px;
    height: 200px;
}
.tpi-illus-market svg { width: 100%; height: 100%; }

/* Dots dekorasi kanan atas (dari tpi-content-bg sudah ada, tambahkan override jika perlu) */
@media (max-width: 768px) {
    .tpi-illus-boat, .tpi-illus-market { display: none; }
    .tpi-feature-cards-row { padding: 30px 16px; gap: 20px; }
    .tpi-fcard { width: 100%; max-width: 280px; }
}

/* Custom Sidebar Navigation TPI Theme */
aside nav ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}

aside nav ul li {
    margin-bottom: 8px;
}

/* Base item style */
aside nav ul li a {
    display: flex !important;
    align-items: center;
    padding: 12px 16px !important;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    position: relative;
}

aside nav > ul > li {
    margin-bottom: 0px;
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 0;
}
aside nav > ul > li:last-child {
    border-bottom: none;
}

/* Icon wrap */
.tpi-nav-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 18px;
    flex-shrink: 0;
}

/* Modifier colors for icon wraps */
.tpi-nav-icon-green {
    background-color: #e8f8f1 !important;
    color: #1ab870 !important;
    padding:12px;
}
.tpi-nav-icon-purple {
    background-color: #f3e8ff !important;
    color: #7c3aed !important;
    padding:12px;
}
.tpi-nav-icon-orange {
    background-color: #ffedd5 !important;
    color: #f97316 !important;
    padding:12px;
}
.tpi-nav-icon-blue {
    background-color: #e0f2fe !important;
    color: #0284c7 !important;
    padding:12px;
}
.tpi-nav-icon-cyan {
    background-color: #cffafe !important;
    color: #0891b2 !important;
    padding:12px;
}
.tpi-nav-icon-teal {
    background-color: #ccfbf1 !important;
    color: #0f766e !important;
    padding:12px;
}

/* Labels */
.tpi-nav-label {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

/* Active style (Green Pill) */
aside nav ul li.tpi-menu-active > a,
aside nav ul li.active > a {
    background: #1ab870 !important;
    box-shadow: 0 4px 10px rgba(26,184,112,0.3);
}

aside nav ul li.tpi-menu-active > a *,
aside nav ul li.active > a * {
    color: #ffffff !important;
}

aside nav ul li.tpi-menu-active > a .tpi-nav-icon-wrap,
aside nav ul li.active > a .tpi-nav-icon-wrap {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border: none !important;
}

/* Chevron */
.tpi-nav-chevron {
    margin-left: auto;
    font-size: 12px !important;
    transition: transform 0.2s;
    color: #64748b !important;
}
.tpi-nav-group.show .tpi-nav-chevron {
    transform: rotate(180deg);
}

/* Submenu */
.tpi-subnav {
    list-style: none;
    padding-left: 36px !important;
    margin-top: 4px;
    display: none;
    position: relative;
}
.tpi-nav-group.show .tpi-subnav {
    display: block;
}

/* Vertical line connector */
.tpi-subnav::before {
    content: '';
    position: absolute;
    left: 37px;
    top: -10px;
    bottom: 20px;
    width: 1px;
    background-color: #e2e8f0;
}

.tpi-subnav li a {
    padding: 8px 12px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    background: transparent !important;
}
.tpi-subnav li a:hover {
    color: #1ab870 !important;
}

.tpi-subnav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #7c3aed;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

/* ============================================================
   SELECT2 STYLING FOR TPI / RAPID
   ============================================================ */
.select2-container .select2-selection--single {
    height: 34px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background-color: #fff;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
    padding-left: 12px !important;
    padding-right: 24px !important;
    color: #444 !important;
    font-size: 13px !important;
}
.select2-container .select2-selection--single .select2-selection__arrow {
    height: 32px !important;
    right: 6px !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 18px !important;
    line-height: 32px !important;
    font-size: 16px !important;
    color: #888;
}
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #1ab870 !important;
    box-shadow: 0 0 5px rgba(26, 184, 112, 0.4);
}
.select2-dropdown {
    border: 1px solid #1ab870 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    z-index: 9999 !important;
}
.select2-results__option {
    padding: 6px 12px !important;
    font-size: 13px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #1ab870 !important;
    color: #fff !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e8f5e9 !important;
    color: #1b5e20 !important;
}
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #eee !important;
    cursor: not-allowed !important;
    border-color: #ccc !important;
}
.input-group .select2-container {
    display: table-cell !important;
    vertical-align: middle;
}
.input-group .select2-container .select2-selection--single {
    border-radius: 0 !important;
}
.input-group .select2-container:first-child .select2-selection--single {
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}
.input-group .select2-container:last-child .select2-selection--single {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}



