/* ===========================
   KontrakIn - Super Admin CSS
   =========================== */

html, body {
    height: 100%;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f9fb;
    color: #333;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* ===== Layout ===== */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-width: 0;
}

.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    height: 100vh;
    background: #0d1b3d;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-brand h1 {
    margin: 0;
    font-size: 18px;
    line-height: 1;
}

.sidebar-brand p {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.sidebar-icon {
    color: #4f8ff7;
    font-size: 22px;
}

.sidebar-nav {
    margin-top: 24px;
    padding: 0 12px;
}

.sidebar-label {
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: #4f8ff7;
    margin-bottom: 8px;
    display: block;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.06);
}

.nav-link.active {
    background: #2563eb;
    color: #fff;
}

.nav-link-icon {
    width: 20px;
    text-align: center;
}

.nav-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: auto;
}

.nav-link-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-footer {
    padding: 16px 12px 24px;
}

.btn-logout {
    width: 100%;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.06);
}

/* ===== Navbar ===== */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-bell {
    position: relative;
    font-size: 20px;
    color: #6b7280;
}

.navbar-bell .nav-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    margin: 0;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.navbar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.navbar-user-role {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* ===== Page heading ===== */
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
}

.page-subtitle {
    color: #6b7280;
    margin: 0 0 24px;
}

.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* ===== Alerts ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* ===== Grid helpers ===== */
.grid {
    display: grid;
    gap: 16px;
}

.grid-stats {
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 24px;
}

.grid-2 { grid-template-columns: 2fr 1fr; margin-bottom: 24px; }
.grid-2-even { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
    .grid-stats { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
}

/* ===== Card ===== */
.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 20px;
}

/* ===== Stat card ===== */
.stat-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.icon-blue   { background: #dbeafe; color: #2563eb; }
.icon-green  { background: #dcfce7; color: #16a34a; }
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-yellow { background: #fef9c3; color: #ca8a04; }
.icon-red    { background: #fee2e2; color: #dc2626; }

.stat-label { font-size: 14px; color: #6b7280; margin: 0; }
.stat-value { font-size: 24px; font-weight: 700; color: #1f2937; margin: 0; }

.stat-growth { font-size: 12px; margin-top: 4px; }
.growth-up { color: #16a34a; }
.growth-down { color: #dc2626; }

/* ===== Section title ===== */
.section-title {
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px;
}

.section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* ===== Legend (donut) ===== */
.legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 8px;
}

.legend-label { display: flex; align-items: center; gap: 8px; }

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.chart-donut-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-donut-center {
    position: absolute;
    text-align: center;
}

.chart-donut-center .value { font-size: 22px; font-weight: 700; color: #1f2937; margin: 0; }
.chart-donut-center .label { font-size: 12px; color: #9ca3af; margin: 0; }

/* ===== Activity / notification list ===== */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.list-item:last-child { border-bottom: none; }

.list-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-item-text { font-size: 14px; color: #374151; margin: 0; }
.list-item-time { font-size: 12px; color: #9ca3af; white-space: nowrap; }

.empty-text {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    padding: 24px 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }

.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }

.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.btn-outline {
    background: #fff;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.btn-sm { padding: 6px 12px; font-size: 13px; }

.link-blue { color: #2563eb; font-size: 14px; }
.link-blue:hover { text-decoration: underline; }

.link-red { color: #dc2626; font-size: 14px; }
.link-red:hover { text-decoration: underline; }

.link-muted { color: #6b7280; font-size: 14px; }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    text-align: left;
    color: #6b7280;
    font-weight: 500;
    padding: 12px 16px 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.table td {
    padding: 12px 16px 12px 0;
    border-bottom: 1px solid #f1f1f1;
    color: #374151;
}

.table tr:last-child td { border-bottom: none; }

.table-actions { display: flex; align-items: center; gap: 12px; }

/* ===== Badge / status pill ===== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: default;
}

.badge-green  { background: #dcfce7; color: #16a34a; }
.badge-gray   { background: #f3f4f6; color: #6b7280; }
.badge-yellow { background: #fef9c3; color: #ca8a04; }
.badge-red    { background: #fee2e2; color: #dc2626; }

button.badge { cursor: pointer; }

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.form-input.error,
.form-textarea.error { border-color: #ef4444; }

.form-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.form-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}

.form-card {
    max-width: 640px;
}

.search-input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    width: 320px;
    max-width: 100%;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ===== Tabs (verifikasi properti) ===== */
.tabs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tab-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.tab-link.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ===== Property verification item ===== */
.prop-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.prop-item:last-child { margin-bottom: 0; }

.prop-name { font-weight: 600; color: #1f2937; margin: 0 0 2px; }
.prop-address { font-size: 14px; color: #6b7280; margin: 0 0 2px; }
.prop-meta { font-size: 13px; color: #9ca3af; margin: 0; }

.prop-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-overlay.show { display: flex; }

.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
}

.modal-title { font-weight: 600; color: #1f2937; margin: 0 0 12px; }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

/* ===== Package card ===== */
.package-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.package-price { font-size: 22px; font-weight: 700; color: #1f2937; margin: 0 0 2px; }
.package-duration { font-size: 14px; color: #6b7280; margin: 0 0 16px; }

.package-features {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 16px;
}

.package-features li { padding: 4px 0; }
.package-features i { color: #16a34a; margin-right: 8px; }

.package-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f1f1;
}

/* ===== Notification detail item ===== */
.notif-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.notif-item:last-child { margin-bottom: 0; }

.notif-title { font-weight: 600; color: #1f2937; margin: 0 0 2px; }
.notif-message { font-size: 14px; color: #6b7280; margin: 0 0 4px; }
.notif-meta { font-size: 12px; color: #9ca3af; margin: 0; }

/* ===== Pagination (Laravel default links) ===== */
.pagination { display: flex; gap: 4px; margin-top: 16px; flex-wrap: wrap; }

/* ===== Utility ===== */
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }

/* ===== Login page (split layout) ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #eaf1ff 0%, #dce9ff 50%, #cfe0ff 100%);
    padding: 40px 20px;
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.login-left {
    flex: 1;
    min-width: 320px;
}

.login-left-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.login-left-brand i {
    color: #2563eb;
    font-size: 34px;
}

.login-left-brand h1 {
    margin: 0;
    font-size: 30px;
    color: #0d1b3d;
}

.login-left-brand h1 span {
    color: #2563eb;
}

.login-left-brand p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.login-left h2 {
    font-size: 32px;
    color: #0d1b3d;
    margin: 0 0 16px;
    line-height: 1.25;
}

.login-left p.desc {
    font-size: 15px;
    color: #6b7280;
    max-width: 420px;
    margin: 0 0 32px;
}

.login-illustration {
    display: flex;
    align-items: flex-end;
    gap: -20px;
    height: 180px;
}

.login-illustration i {
    font-size: 90px;
    color: #0d1b3d;
}

.login-illustration i:nth-child(2) {
    color: #2563eb;
    margin-left: -20px;
    font-size: 110px;
}

.login-right {
    background: #fff;
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(13, 27, 61, 0.12);
}

.login-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
}

.login-right h2 {
    text-align: center;
    font-size: 22px;
    color: #0d1b3d;
    margin: 0 0 8px;
}

.login-right p.desc {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 28px;
}

.input-icon-group {
    position: relative;
    margin-bottom: 18px;
}

.input-icon-group i.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
}

.input-icon-group input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 13px 16px 13px 44px;
    font-size: 14px;
    font-family: inherit;
}

.input-icon-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.input-icon-group .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 15px;
}

.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 14px;
}

.login-options-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}

.login-options-row a {
    color: #2563eb;
}

.login-options-row a:hover { text-decoration: underline; }

.btn-login-submit {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-submit:hover { background: #1d4ed8; }

@media (max-width: 900px) {
    .login-wrapper { flex-direction: column; }
    .login-left { text-align: center; }
    .login-left-brand { justify-content: center; }
    .login-illustration { justify-content: center; }
}

/* ===== Small action buttons (Edit/Hapus) ===== */
.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.btn-edit:hover {
    background: #dbeafe;
}

.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.btn-delete:hover {
    background: #fee2e2;
}

/* ===== Settings page ===== */
.settings-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f1f1;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 2px;
}

.settings-section-desc {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

.logo-upload-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-preview {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-preview i {
    color: #d1d5db;
    font-size: 22px;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-swatch {
    width: 44px;
    height: 40px;
    padding: 2px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

/* ===== Tambahan: badge warna lain ===== */
.badge-blue    { background: #dbeafe; color: #2563eb; }
.badge-purple  { background: #ede9fe; color: #7c3aed; }
.badge-indigo  { background: #e0e7ff; color: #4f46e5; }
.badge-pink    { background: #fce7f3; color: #db2777; }

/* ===== Avatar bulat (inisial nama) ===== */
.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.avatar-blue   { background: #2563eb; }
.avatar-purple { background: #7c3aed; }
.avatar-green  { background: #16a34a; }
.avatar-orange { background: #ea580c; }

.cell-with-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cell-with-avatar .cell-name { font-weight: 600; color: #1f2937; font-size: 14px; }
.cell-with-avatar .cell-sub  { font-size: 12px; color: #9ca3af; }

/* ===== Filter dropdown (select bergaya pill/outline) ===== */
.filter-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #2563eb;
}

.search-input-icon-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.search-input-icon-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
}

.search-input-icon-wrap input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px 10px 36px;
    font-size: 14px;
}

.search-input-icon-wrap input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.toolbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar-row .filters-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
}

/* ===== Tombol aksi tambahan (Terima / Lihat) ===== */
.btn-approve {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.btn-approve:hover { background: #1d4ed8; }

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.btn-view:hover { background: #e0e7ff; }

.table-actions-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

/* ===== Ikon kotak berwarna (untuk row laporan/notifikasi) ===== */
.row-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* ===== Kartu paket (icon + fitur checklist) ===== */
.package-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #4b5563;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.feature-list li i { color: #2563eb; font-size: 12px; }

/* ===== Alias class buat halaman Kelola Owner (nama beda, style sama) ===== */
.cell-avatar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cell-avatar-row img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.cell-title { font-weight: 600; color: #1f2937; font-size: 14px; margin: 0; }
.cell-subtitle { font-size: 12px; color: #9ca3af; margin: 0; }

.search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
}

.search-box input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px 10px 36px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.filter-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.filter-select-wrap select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 34px 9px 34px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    appearance: none;
    cursor: pointer;
}

.filter-select-wrap select:focus { outline: none; border-color: #2563eb; }

.filter-select-wrap .icon-left {
    position: absolute;
    left: 12px;
    color: #6b7280;
    font-size: 12px;
    pointer-events: none;
}

.filter-select-wrap .icon-chevron {
    position: absolute;
    right: 12px;
    color: #6b7280;
    font-size: 11px;
    pointer-events: none;
}

.badge-dot { position: relative; padding-left: 22px; }
.badge-dot::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-teal { background: #ccfbf1; color: #0d9488; }

.btn-deactivate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.btn-deactivate:hover { background: #fee2e2; }

/* ===== Form card dengan avatar header (create/edit) ===== */
.form-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f1f1;
}

.form-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.form-card-header h2 {
    margin: 0 0 2px;
    font-size: 17px;
    color: #1f2937;
}

.form-card-header p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

@media (max-width: 640px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}

.input-icon-group.select-icon select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 13px 16px 13px 44px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    appearance: none;
}

.input-icon-group.select-icon .field-icon-chevron {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 12px;
    pointer-events: none;
}

/* ===== Fix: utility & select dengan icon (dipakai form Owner/Super Admin) ===== */
.mb-4 { margin-bottom: 16px; }

.input-icon-group.select-icon select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 13px 16px 13px 44px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    appearance: none;
    cursor: pointer;
}

.input-icon-group.select-icon select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* ===========================
   Landing Page (Public Home)
   =========================== */

.lp-navbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #0d1b3d;
}

.lp-brand i { color: #2563eb; }
.lp-brand span { color: #2563eb; }

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.lp-nav-links a {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

.lp-nav-links a:hover { color: #2563eb; }

.lp-nav-actions { display: flex; align-items: center; gap: 12px; }

.lp-btn {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lp-btn-outline { background: #fff; color: #2563eb; border: 1px solid #2563eb; }
.lp-btn-outline:hover { background: #eff6ff; }
.lp-btn-primary { background: #2563eb; color: #fff; border: none; cursor: pointer; }
.lp-btn-primary:hover { background: #1d4ed8; }

/* Hero */
.lp-hero {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    padding: 60px 40px 40px;
}

.lp-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.lp-hero-badge {
    display: inline-block;
    background: #dbeafe;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.lp-hero h1 {
    font-size: 40px;
    line-height: 1.2;
    color: #0d1b3d;
    margin: 0 0 16px;
}

.lp-hero p.desc {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 28px;
    max-width: 480px;
}

.lp-hero-cta { display: flex; gap: 12px; margin-bottom: 24px; }

.lp-hero-social-proof {
    font-size: 13px;
    color: #6b7280;
}

.lp-hero-image {
    border-radius: 16px;
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.lp-hero-stats {
    max-width: 1200px;
    margin: 32px auto 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(13,27,61,0.08);
    padding: 24px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lp-hero-stat { display: flex; align-items: center; gap: 12px; }
.lp-hero-stat i { color: #2563eb; font-size: 20px; }
.lp-hero-stat .num { font-weight: 700; font-size: 18px; color: #1f2937; margin: 0; }
.lp-hero-stat .label { font-size: 12px; color: #9ca3af; margin: 0; }

/* Generic section */
.lp-section { padding: 64px 40px; max-width: 1200px; margin: 0 auto; }
.lp-section-head { text-align: center; margin-bottom: 40px; }
.lp-section-head h2 { font-size: 28px; color: #0d1b3d; margin: 0 0 8px; }
.lp-section-head p { font-size: 14px; color: #6b7280; margin: 0; }

.lp-section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

/* Property cards */
.lp-property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.lp-property-card {
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
}

.lp-property-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.lp-property-body { padding: 16px; }
.lp-property-body h3 { margin: 0 0 4px; font-size: 15px; color: #1f2937; }
.lp-property-body .loc { font-size: 12px; color: #9ca3af; margin: 0 0 8px; }
.lp-property-body .price { font-size: 15px; font-weight: 700; color: #2563eb; margin: 0 0 8px; }

/* Feature grid */
.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lp-feature-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 24px;
}

.lp-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.lp-feature-card h3 { font-size: 15px; margin: 0 0 6px; color: #1f2937; }
.lp-feature-card p { font-size: 13px; color: #6b7280; margin: 0; }

/* Pricing */
.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.lp-pricing-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 28px;
    position: relative;
}

.lp-pricing-card.popular { border: 2px solid #2563eb; }

.lp-pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
}

.lp-pricing-card h3 { margin: 0 0 8px; font-size: 16px; color: #1f2937; }
.lp-pricing-price { font-size: 28px; font-weight: 700; color: #1f2937; margin: 0; }
.lp-pricing-price span { font-size: 13px; font-weight: 400; color: #9ca3af; }
.lp-pricing-desc { font-size: 13px; color: #9ca3af; margin: 4px 0 20px; }

.lp-pricing-features { margin: 0 0 24px; padding: 0; list-style: none; }
.lp-pricing-features li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; color: #4b5563; padding: 6px 0;
}
.lp-pricing-features li i { color: #16a34a; margin-top: 2px; }

/* How it works */
.lp-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.lp-step-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
    color: #fff;
    font-weight: 700;
}

.lp-step-grid-inner h3 { font-size: 15px; margin: 0 0 6px; color: #1f2937; }
.lp-step-grid-inner p { font-size: 13px; color: #6b7280; margin: 0; }

/* Footer */
.lp-footer {
    background: #0d1b3d;
    color: rgba(255,255,255,0.6);
    padding: 32px 40px;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .lp-hero-inner { grid-template-columns: 1fr; }
    .lp-hero-stats { grid-template-columns: repeat(2, 1fr); }
    .lp-property-grid, .lp-feature-grid, .lp-pricing-grid, .lp-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-nav-links { display: none; }
}

/* ===========================
   Landing Page - Colorful Theme Overrides
   =========================== */

.lp-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #ede9fe 50%, #fdf2f8 100%);
}

.lp-hero-badge {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    color: #fff;
}

.lp-btn-primary {
    background: linear-gradient(90deg, #2563eb, #4f46e5);
}
.lp-btn-primary:hover {
    background: linear-gradient(90deg, #1d4ed8, #4338ca);
}

/* Section alternating tinted backgrounds */
.lp-section-tint-blue { background: #eff6ff; max-width: 100%; }
.lp-section-tint-blue > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

.lp-section-tint-purple { background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%); max-width: 100%; }
.lp-section-tint-purple > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* Feature cards: masing-masing warna beda */
.lp-feature-card {
    border: none;
    color: #fff;
}
.lp-feature-card h3 { color: #fff; }
.lp-feature-card p { color: rgba(255,255,255,0.85); }

.lp-feature-card:nth-child(6n+1) { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.lp-feature-card:nth-child(6n+2) { background: linear-gradient(135deg, #22c55e, #16a34a); }
.lp-feature-card:nth-child(6n+3) { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.lp-feature-card:nth-child(6n+4) { background: linear-gradient(135deg, #f59e0b, #d97706); }
.lp-feature-card:nth-child(6n+5) { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.lp-feature-card:nth-child(6n+6) { background: linear-gradient(135deg, #ec4899, #db2777); }

.lp-feature-card .lp-feature-icon {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}

/* Property card price lebih nge-jreng */
.lp-property-body .price { color: #7c3aed; }
.lp-property-card { border: 1px solid #f1f1f1; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }

/* Pricing cards: aksen warna beda tiap kartu */
.lp-pricing-card:nth-child(3n+1) { border-top: 4px solid #06b6d4; }
.lp-pricing-card:nth-child(3n+2) { border-top: 4px solid #2563eb; }
.lp-pricing-card:nth-child(3n+3) { border-top: 4px solid #7c3aed; }
.lp-pricing-card.popular { border-top: 4px solid #2563eb; }

/* Hero stats icon berwarna beda */
.lp-hero-stat:nth-child(1) i { color: #2563eb; }
.lp-hero-stat:nth-child(2) i { color: #16a34a; }
.lp-hero-stat:nth-child(3) i { color: #7c3aed; }
.lp-hero-stat:nth-child(4) i { color: #d97706; }

/* CTA penutup gradient */
#tentang {
    background: linear-gradient(135deg, #0d1b3d 0%, #1e3a8a 50%, #4c1d95 100%) !important;
}

/* Footer gradient senada */
.lp-footer {
    background: linear-gradient(135deg, #0d1b3d 0%, #1e293b 100%);
}

/* Nav brand icon warna */
.lp-brand i { background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }


/* ===== Toggle password eye ===== */
.input-icon-group { position: relative; }
.input-icon-group .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
    font-size: 15px;
}
.input-icon-group .toggle-password:hover { color: #2563eb; }
.input-icon-group input { padding-right: 42px; }

/* ===== Bootstrap 5 pagination ===== */
.pagination {
    display: flex;
    gap: 4px;
    margin-top: 16px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}
.pagination .page-item .page-link,
.pagination > li > a,
.pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
}
.pagination .page-item.active .page-link,
.pagination .active > span,
.pagination .active > a {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.pagination .disabled > span,
.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}