@charset "utf-8";
/* CSS Document */

:root {
	--primary-color: #0f172a;
	--accent-color: #3b82f6;
	--text-muted: #64748b;
	--bg-light: #f8fafc;
}

body { 
	font-family: 'Plus Jakarta Sans', sans-serif; 
	color: var(--primary-color);
	background-color: #ffffff;
	overflow-x: hidden;
}

/* Hero Section - Fit to Screen */
.hero-wrapper {
	min-height: 100vh;
	display: flex;
	align-items: center;
	background: radial-gradient(circle at top right, #eff6ff, transparent);
}

.navbar {
	padding: 1.5rem 0;
	transition: all 0.3s ease;
}

.navbar-brand {
	font-weight: 700;
	letter-spacing: -0.5px;
	font-size: 1.25rem;
}

h1 {
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -1px;
	margin-bottom: 1.5rem;
}

h2 {
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.lead {
	font-size: 1.1rem;
	color: var(--text-muted);
	margin-bottom: 2rem;
	max-width: 500px;
}


/* Image Styling */
.hero-img-container {
	position: relative;
}

.hero-img-main {
	width: 100%;
	border-radius: 24px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
	object-fit: cover;
	height: 500px;
}

/* Floating Badge */
.floating-badge {
	position: absolute;
	bottom: 20px;
	left: -20px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	padding: 15px 25px;
	border-radius: 16px;
	box-shadow: 0 10px 15px rgba(0,0,0,0.05);
	display: flex;
	align-items: center;
	gap: 12px;
	animation: float 3s ease-in-out infinite;
}

@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-10px); }
	100% { transform: translateY(0px); }
}

/* Modularitas Cards */
.feature-card {
	border: 1px solid #f1f5f9;
	border-radius: 20px;
	padding: 1.5rem;
	transition: all 0.3s ease;
	background: #fff;
	height: 100%;
}

.feature-card:hover {
	border-color: var(--accent-color);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
	transform: translateY(-5px);
}

.icon-box {
	width: 42px;
	height: 42px;
	background: #eff6ff;
	color: var(--accent-color);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
	font-size: 1.1rem;
}

/* USP Security Section */
.usp-section {
	background-color: var(--bg-light);
	border-radius: 32px;
	padding: 4rem 3rem;
	margin-bottom: 5rem;
}

.usp-item {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.usp-icon-circle {
	width: 32px;
	height: 32px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-color);
	box-shadow: 0 4px 6px rgba(0,0,0,0.05);
	flex-shrink: 0;
	font-size: 0.8rem;
}

.btn-primary {
	background-color: var(--primary-color);
	border: none;
	padding: 12px 28px;
	border-radius: 12px;
	font-weight: 600;
	transition: all 0.3s;
}

.btn-primary:hover {
	background-color: var(--accent-color);
	transform: scale(1.02);
}

.nav-link-v1 {
	color: var(--text-muted);
	font-weight: 500;
	text-decoration: none;
	font-size: 0.9rem;
	transition: 0.3s;
}

.nav-link-v1:hover { color: var(--accent-color); }

@media (max-width: 991px) {
	h1 { font-size: 2.25rem; }
	.hero-img-main { height: 350px; margin-top: 3rem; }
	.usp-section { padding: 2.5rem 1.5rem; }
}

.badge.bg-outline-primary {
    color: var(--accent-color);
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.border-dashed {
    border-style: dashed !important;
}


/* Dashboard Layout */
.wrapper {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}


#content {
    width: calc(100% - 260px);
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s;
    margin-left: 260px;
    background-color: #f8fafc;
}

/* Adjust Content Area */
#content.wide {
    margin-left: 80px;
    width: calc(100% - 80px);
}

#content.active {
    width: 100%;
    margin-left: 0;
}

/* Tombol Toggle Styling */
.btn-toggle {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--primary-color);
    border-radius: 8px;
    padding: 5px 12px;
    transition: all 0.3s;
}

.btn-toggle:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Responsive: Mobile Mode */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
        margin-left: 0;
    }
    #content.active {
        margin-left: 0; /* Content tidak bergeser di mobile saat sidebar muncul */
    }
}

.top-navbar-app {
    background: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}


/* Styling Tile Aplikasi dalam Dropdown */
.app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    background: #fff;
}

.app-tile:hover:not(.disabled) {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.app-tile.active {
    background-color: #f0f7ff;
    border-color: #0d6efd;
}

.app-tile i {
    margin-bottom: 4px;
}

.app-tile span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
}

.app-tile small {
    font-size: 0.6rem;
    color: #888;
}

.app-tile.disabled {
    pointer-events: none; /* Mencegah klik */
    user-select: none;
}





/* Styling Avatar Profile */
.avatar-container {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}

/* Navbar Tuning */
.top-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Efek blur kaca di background */
}

.main-container {
    padding: 2rem;
}

/* Dashboard Cards */
.stat-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}


/* Security Page Specific */
.bg-gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.security-card {
    border: none;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    height: 100%;
}

.security-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.icon-badge {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.shield-check {
    color: #10b981;
    margin-right: 10px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: #64748b;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
}


/* action button */
.action-gap {
	display: flex;
	gap: 3px;
	justify-content: center;
}

/* Base Style Tombol */
.btn-action-custom {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px; /* Modern Rounded */
	border: none;
	transition: all 0.25s ease;
	text-decoration: none;
	font-size: 1.1rem;
	position: relative;
}

/* Hover Effect Umum */
.btn-action-custom:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

/* Variasi Warna Premium */
.btn-share-row { background-color: rgba(13, 110, 253, 0.1); color: #20c997; }
.btn-share-row:hover { background-color: #20c997; color: white; }

.btn-view-row { background-color: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.btn-view-row:hover { background-color: #0d6efd; color: white; }

.btn-print-row { background-color: rgba(108, 117, 125, 0.1); color: #6c757d; }
.btn-print-row:hover { background-color: #6c757d; color: white; }

.btn-edit-row { background-color: rgba(255, 193, 7, 0.15); color: #997404; }
.btn-edit-row:hover { background-color: #ffc107; color: white; }

.btn-delete-row, .btn-delete-detail { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }
.btn-delete-row:hover, .btn-delete-detail:hover { background-color: #dc3545; color: white; }
	
.btn-purple-row { background-color: rgba(111, 66, 193, 0.1); color: #6f42c1; }
.btn-purple-row:hover { background-color: #6f42c1; color: white; }

.btn-indigo-row { background-color: rgba(102, 16, 242, 0.1); color: #6610f2; }
.btn-indigo-row:hover { background-color: #6610f2; color: white; }

.btn-teal-row { background-color: rgba(32, 201, 151, 0.1); color: #198754; }
.btn-teal-row:hover { background-color: #198754; color: white; }

.btn-pink-row { background-color: rgba(214, 51, 132, 0.1); color: #d63384; }
.btn-pink-row:hover { background-color: #d63384; color: white; }

.btn-orange-row { background-color: rgba(214, 51, 132, 0.1); color: #fd7e14; }
.btn-orange-row:hover { background-color: #fd7e14; color: white; }

.btn-cyan-row { background-color: rgba(214, 51, 132, 0.1); color: #0dcaf0; }
.btn-cyan-row:hover { background-color: #0dcaf0; color: white; }

/* Custom Soft Colors for TilapiaCore UI */
.bg-purple-soft { 
    background-color: #e7f1ff !important; 
    color: #6f42c1 !important; 
    border: 1px solid rgba(13, 110, 253, 0.2);
}
.bg-indigo-soft { 
    background-color: #e7f1ff !important; 
    color: #6610f2 !important; 
    border: 1px solid rgba(214, 51, 132, 0.2);
}
.bg-teal-soft { 
    background-color: #e7f1ff !important; 
    color: #20c997 !important; 
    border: 1px solid rgba(214, 51, 132, 0.2);
}
.bg-pink-soft { 
    background-color: #fff0f3 !important; 
    color: #d63384 !important; 
    border: 1px solid rgba(214, 51, 132, 0.2);
}
.bg-orange-soft { 
    background-color: #fff0f3 !important; 
    color: #fd7e14 !important; 
    border: 1px solid rgba(214, 51, 132, 0.2);
}
.bg-cyan-soft { 
    background-color: #fff0f3 !important; 
    color: #0dcaf0 !important; 
    border: 1px solid rgba(214, 51, 132, 0.2);
}
.bg-yellow-soft { 
    background-color: #e7f1ff !important; 
    color: #ffc107 !important; 
    border: 1px solid rgba(214, 51, 132, 0.2);
}
.bg-blue-soft { 
    background-color: #e7f1ff !important; 
    color: #0d6efd !important; 
    border: 1px solid rgba(13, 110, 253, 0.2);
}
.bg-brown-soft { 
    background-color: #e7f1ff !important; 
    color: #6F4E37 !important; 
    border: 1px solid rgba(13, 110, 253, 0.2);
}

/* background color */
.bg-purple { background-color: #6f42c1 !important; }
.bg-indigo { background-color: #6610f2 !important; }
.bg-teal { background-color: #20c997 !important; }
.bg-pink { background-color: #d63384 !important; }
.bg-orange { background-color: #fd7e14 !important; }
.bg-cyan { background-color: #0dcaf0 !important; }
.bg-yellow { background-color: #ffc107 !important; }
.bg-brown { background-color: #6F4E37 !important; }

/* text color */
.text-purple { color: #6f42c1 !important; }
.text-indigo { color: #6610f2 !important; }
.text-teal { color: #20c997 !important; }
.text-pink { color: #d63384 !important; }
.text-orange { color: #fd7e14 !important; }
.text-cyan { color: #0dcaf0 !important; }
.text-yellow { color: #ffc107 !important; }
.text-brown { color: #6F4E37 !important; }

/* text-size */
.text-size1 { font-size: 0.7rem !important}
.text-size2 { font-size: 0.75rem !important}
.text-size3 { font-size: 0.8rem !important}
.text-size4 { font-size: 0.85rem !important}
.text-size5 { font-size: 0.9rem !important}
.text-size6 { font-size: 0.95rem !important}
.text-size7 { font-size: 1rem !important}

.text-label {
	font-size: 0.75rem !important;
	font-weight: 600;
	color: #666;
}

/* Extra Small Button/Badge */
.btn-xs, .badge-xs {
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
    line-height: 1.2;
    border-radius: 4px;
}

/* Mengecilkan teks pada kotak pilihan (selection) */
/* Fix Select2 inside Input Group */
.input-group > .select2-container--default {
    flex: 1 1 auto;
    width: 1% !important;
}

.input-group > .select2-container--default .select2-selection--single {
    height: 100% !important;
	display: flex;
	align-items: center;
    line-height: inherit;	
    padding: 0.25rem 0.5rem; /* Menyesuaikan ukuran small */
    border: 1px solid #dee2e6;
    border-top-left-radius: 0 !important; /* Agar menyatu dengan icon di kiri */
    border-bottom-left-radius: 0 !important;
}

/* Menyesuaikan posisi arrow select2 agar di tengah secara vertikal */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
    color: #495057;
}

	
/* Posisi arrow agar tetap di tengah */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    display: flex;
    align-items: center;
}
	
/* Jika menggunakan LG, perbesar font sedikit */

/* Ukuran default (Medium) */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 0.875rem !important; /* Setara text-size4 / default bootstrap */
}

/* Jika berada di dalam input-group-sm (Small) */
.input-group-sm .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 0.75rem !important; /* Setara text-size2 */
}

/* Jika berada di dalam input-group-lg (Large) */
.input-group-lg .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 1.1rem !important; /* Setara text-size7 */
}

/* Mengubah ukuran huruf pada daftar pilihan (Dropdown) */
.select2-results__option {
    font-size: 0.875rem; /* Sesuaikan dengan selera */
}
	
/* Penyesuaian teks di dalam untuk MD dan LG */
.input-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding-left: 10px;
    color: #495057;
}



/* Custom Modal XXL (90% lebar layar) */
@media (min-width: 1200px) {
    .modal-xxl {
        max-width: 90% !important; /* Atau tentukan px, misal: 1400px */
        width: 90%;
    }
}

/* Modal Full Width tapi tetap punya padding */
.modal-huge {
    max-width: 98% !important;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
}



#tableItem thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8f9fa; /* Sesuaikan warna header */
    box-shadow: inset 0 -1px 0 #dee2e6; /* Border bawah halus */
}

/* 1. Tambahan: Highlight baris yang sedang aktif */
#tableItem tr:hover {
    background-color: #f8f9fa; /* Warna abu-abu sangat muda saat baris di-hover */
}

/* 2. Menekan Padding TD agar mepet ke input */
#tableItem td {
    padding: 2px 4px !important; /* Standar Bootstrap 5 adalah 8px (.5rem) */
    vertical-align: middle;      /* Menjaga teks tetap di tengah secara vertikal */
}

/* 3. Kondisi DEFAULT (Sembunyikan border & bg) */
#tableItem .form-control-sm, 
#tableItem .form-select-sm,
#tableItem .select2-container--bootstrap-5 .select2-selection {
	height: calc(1.5em + 0.25rem + 2px) !important; /* Lebih pendek dari standar sm */
    padding: 0.1rem 0.4rem !important;            /* Mengurangi padding atas-bawah */
    font-size: 0.75rem !important;                /* Ukuran font ideal ERP (sekitar 11-12px) */
    line-height: 1.2;
    border-radius: 2px;                           /* Siku sedikit lebih tajam terlihat lebih serius */	
    border: 1px solid transparent !important;
    background-color: transparent !important;
    transition: all 0.2s ease-in-out; /* Agar perpindahan warna halus */
}

/* 4. Kondisi HOVER & FOCUS (Tampilkan border & bg) */
/* Saat Baris di-Hover */
#tableItem tr:hover .form-control, 
#tableItem tr:hover .form-select-sm,
#tableItem tr:hover .select2-container--bootstrap-5 .select2-selection,
/* Saat Elemen Spesifik di-Focus */
#tableItem .form-control:focus, 
#tableItem .form-select-sm:focus,
#tableItem .select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border: 1px solid #ced4da !important;
    background-color: #fff !important;
    box-shadow: none !important; /* Menghilangkan glow biru bawaan Bootstrap agar tetap clean */
}

/* 5. Menekan Padding pada Input Group Text (jika ada) */
#tableItem .input-group-text {
    padding: 0 0.4rem !important;
    font-size: 0.7rem !important;
}

/* 6. Menyesuaikan Posisi Arrow (Panah) Select2 */
#tableItem .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow,
#tableItem .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 22px !important;
    width: 20px !important;
}

/* Tambahkan di layout utama agar seragam */
.table td {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    line-height: 1.2;
}

/* Khusus header, buat lebih tebal sedikit */
.table thead th {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}



/* Class untuk membuat select seolah-olah readonly */
.readonly-select {
	pointer-events: none;
	background-color: #f8f9fa !important; /* Memberi kesan subtle bahwa ini terkunci */
	touch-action: none;
	user-select: none;
}

/* Opsional: Menghilangkan arrow select agar lebih terlihat seperti label/readonly */
.readonly-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}



/* Pastikan modal lookup di depan modal utama */
#modalLookupCOA {
	z-index: 1070 !important;
}
.modal-backdrop + .modal-backdrop {
	z-index: 1065 !important;
}

/* Perbaikan scroll pada modal pertama setelah modal kedua ditutup */
body.modal-open {
	overflow: hidden !important;
	padding-right: 0 !important;
}


