/* Custom overrides for Huraga theme */

/* Card styling override to match Flowbite */
.card {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    /* border-gray-200 */
    border-radius: 0.75rem !important;
    /* rounded-xl (12px) */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    /* shadow-sm */
    overflow: hidden !important;
    transition: box-shadow 0.2s ease-in-out;
}

[data-bs-theme="dark"] .card {
    background-color: #1f2937 !important;
    /* bg-gray-800 */
    border-color: #374151 !important;
    /* border-gray-700 */
}

/* Card Header Override - no separate background, subtle bottom border, clean typography */
.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid #f3f4f6 !important;
    /* border-gray-100 */
    padding: .6rem 1rem .6rem 1rem !important;
    /* tighter, Flowbite padding */
    border-top-left-radius: 0.75rem !important;
    border-top-right-radius: 0.75rem !important;
}

/* Card Header Override - no separate background, subtle bottom border, clean typography */
.card-header .py-2 {
    padding: 0 !important;
}

[data-bs-theme="dark"] .card-header {
    border-bottom: 1px solid #374151 !important;
    /* border-gray-700 */
}

[data-bs-theme="dark"] .card-header {
    border-bottom: 1px solid #374151 !important;
    /* border-gray-700 */
}

/* Card body padding adjustments */
.card-body {
    padding: 1rem 1.25rem 1.25rem 1.25rem !important;
}

/* Title typography inside cards */
.card-header h6,
.card-header h5,
.card-header .h6,
.card-header .h5,
.dashboard .card-header h6 {
    font-size: 1.125rem !important;
    /* text-lg */
    font-weight: 600 !important;
    /* font-semibold */
    color: #111827 !important;
    /* text-gray-900 */
}

[data-bs-theme="dark"] .card-header h6,
[data-bs-theme="dark"] .card-header h5,
[data-bs-theme="dark"] .card-header .h6,
[data-bs-theme="dark"] .card-header .h5,
[data-bs-theme="dark"] .dashboard .card-header h6 {
    color: #ffffff !important;
}

.offcanvas-item:first-child {
    border-top: none;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Breadcrumb Flowbite styling */
nav[aria-label="Breadcrumb"] ol {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

nav[aria-label="Breadcrumb"] ol li {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    /* font-medium */
}

/* Separate all list items except the first (Home) */
nav[aria-label="Breadcrumb"] ol li:not(:first-child)::before {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 6 10'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 9 4-4-4-4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Style links */
nav[aria-label="Breadcrumb"] ol li a {
    color: #1d4ed8 !important;
    /* Blue-700 / Flowbite blue */
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

nav[aria-label="Breadcrumb"] ol li a:hover {
    color: #1e40af !important;
    /* Blue-800 */
}

/* Active item */
nav[aria-label="Breadcrumb"] ol li.active,
nav[aria-label="Breadcrumb"] ol li[aria-current="page"] {
    color: #1d4ed8 !important;
    /* Flowbite links are blue in the user's screenshot */
}

/* Home Icon styling */
nav[aria-label="Breadcrumb"] ol li svg {
    color: #4b5563;
    /* Gray-600 */
    fill: currentColor;
}

/* Button Override - Flowbite Vibe */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500 !important; /* font-medium */
    font-size: 0.875rem !important; /* text-sm */
    border-radius: 0.5rem !important; /* rounded-lg (8px) */
    padding: 0.45rem 1rem !important; /* px-4 py-2 */
    transition: all 0.2s ease-in-out !important;
}

/* Primary Button (.btn-primary) */
.btn-primary {
    background-color: #1a56db !important; /* Flowbite Blue-700 */
    border-color: #1a56db !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #1e429f !important; /* Flowbite Blue-800 */
    border-color: #1e429f !important;
}

/* Info Button (.btn-info) - Flowbite Cyan */
.btn-info {
    background-color: #0891b2 !important; /* Flowbite Cyan-600 */
    border-color: #0891b2 !important;
    color: #ffffff !important;
}

.btn-info:hover {
    background-color: #0e7490 !important; /* Flowbite Cyan-700 */
    border-color: #0e7490 !important;
    color: #ffffff !important;
}

.btn-outline-info {
    background-color: transparent !important;
    border: 1px solid #0891b2 !important;
    color: #0891b2 !important;
}

.btn-outline-info:hover {
    background-color: #0891b2 !important;
    border-color: #0891b2 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-info {
    background-color: #0e7490 !important;
    border-color: #0e7490 !important;
}

[data-bs-theme="dark"] .btn-info:hover {
    background-color: #0891b2 !important;
    border-color: #0891b2 !important;
}

[data-bs-theme="dark"] .btn-outline-info {
    border-color: #22d3ee !important;
    color: #22d3ee !important;
}

[data-bs-theme="dark"] .btn-outline-info:hover {
    background-color: #22d3ee !important;
    border-color: #22d3ee !important;
    color: #111827 !important;
}

/* Secondary Button / Outline (.btn-secondary, .btn-light, .btn-outline-secondary, etc.) */
.btn-secondary,
.btn-outline-secondary,
.btn-light {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important; /* border-gray-200 */
    color: #374151 !important; /* text-gray-700 */
}

.btn-secondary:hover,
.btn-outline-secondary:hover,
.btn-light:hover {
    background-color: #f9fafb !important; /* bg-gray-50 */
    color: #111827 !important; /* text-gray-900 */
}

/* Dark Button (.btn-dark) */
.btn-dark {
    background-color: #1f2937 !important; /* bg-gray-800 */
    border-color: #1f2937 !important;
    color: #ffffff !important;
}

.btn-dark:hover {
    background-color: #111827 !important; /* bg-gray-900 */
    border-color: #111827 !important;
}

/* Red / Danger Button (.btn-danger) */
.btn-danger {
    background-color: #e02424 !important; /* Flowbite Red-700 */
    border-color: #e02424 !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    background-color: #c81e1e !important; /* Flowbite Red-800 */
    border-color: #c81e1e !important;
}

/* Button size modifiers */
.btn-sm {
    padding: 0.375rem 0.75rem !important; /* smaller padding */
    font-size: 0.75rem !important;
    border-radius: 0.5rem !important;
}

.btn-lg {
    padding: 0.625rem 1.25rem !important;
    font-size: 1rem !important;
    border-radius: 0.625rem !important;
}

/* Dark mode overrides for buttons */
[data-bs-theme="dark"] .btn-secondary,
[data-bs-theme="dark"] .btn-outline-secondary,
[data-bs-theme="dark"] .btn-light {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #f9fafb !important;
}

[data-bs-theme="dark"] .btn-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-light:hover {
    background-color: #4b5563 !important;
    color: #ffffff !important;
}

/* Flowbite Outline Primary Button Override */
.btn-outline-primary {
    background-color: transparent !important;
    border: 1px solid #1a56db !important; /* Flowbite Blue-700 */
    color: #1a56db !important;
}

.btn-outline-primary:hover {
    background-color: #1a56db !important;
    border-color: #1a56db !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-primary {
    border-color: #3f83f8 !important; /* Flowbite Blue-400 */
    color: #3f83f8 !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: #3f83f8 !important;
    border-color: #3f83f8 !important;
    color: #ffffff !important;
}

/* Table Flowbite Vibes */
.table {
    width: 100% !important;
    font-size: 0.875rem !important; /* text-sm */
    text-align: left !important;
    color: #4b5563 !important; /* text-gray-500 */
    border-collapse: collapse !important;
    border: none !important;
    border-top: none !important;
}

[data-bs-theme="dark"] .table {
    color: #9ca3af !important; /* text-gray-400 */
}

/* Override default Bootstrap 5 table cell borders, box shadows, and background styles */
.table > :not(caption) > * > * {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0.75rem 1rem !important; /* cleaner, tighter padding */
}

[data-bs-theme="dark"] .table > :not(caption) > * > * {
    border-bottom: 1px solid #374151 !important;
}

/* Header style */
.table thead,
.table thead tr,
.table thead th {
    background-color: #f9fafb !important; /* bg-gray-50 */
    color: #374151 !important; /* text-gray-700 */
    text-transform: uppercase !important;
    font-size: 0.75rem !important; /* text-xs */
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    border-top: none !important;
    border-bottom: 1px solid #e5e7eb !important;
}

[data-bs-theme="dark"] .table thead,
[data-bs-theme="dark"] .table thead tr,
[data-bs-theme="dark"] .table thead th {
    background-color: #1f2937 !important; /* bg-gray-800 */
    color: #9ca3af !important; /* text-gray-400 */
    border-top: none !important;
    border-bottom: 1px solid #374151 !important;
}

/* Row backgrounds to keep it clean and white like Gambar 1 */
.table tbody tr {
    background-color: #ffffff !important;
}

[data-bs-theme="dark"] .table tbody tr {
    background-color: #1f2937 !important;
}

/* Striped rows override to match white style of Gambar 1 */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: transparent !important;
    --bs-table-accent-bg: transparent !important;
}

/* Hover effect */
.table-hover tbody tr:hover > * {
    background-color: #f9fafb !important;
}
[data-bs-theme="dark"] .table-hover tbody tr:hover > * {
    background-color: #374151 !important;
}

/* Card container for table styling */
.card .table-responsive {
    border: none !important;
    margin: 0 !important;
}

/* Flowbite Badge Overrides */
.badge {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    padding: 0.25rem 0.625rem !important;
    border-radius: 0.375rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: none !important;
}

/* Green Badge */
.badge.bg-success {
    background-color: #def7ec !important;
    color: #03543f !important;
}
[data-bs-theme="dark"] .badge.bg-success {
    background-color: rgba(3, 84, 63, 0.2) !important;
    color: #31c48d !important;
}

/* Yellow Badge */
.badge.bg-warning {
    background-color: #fdf6b2 !important;
    color: #723b13 !important;
}
[data-bs-theme="dark"] .badge.bg-warning {
    background-color: rgba(114, 59, 19, 0.2) !important;
    color: #e3a008 !important;
}

/* Red Badge */
.badge.bg-danger {
    background-color: #fde8e8 !important;
    color: #9b1c1c !important;
}
[data-bs-theme="dark"] .badge.bg-danger {
    background-color: rgba(155, 28, 28, 0.2) !important;
    color: #f98080 !important;
}

/* Blue Badge */
.badge.bg-info {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
}
[data-bs-theme="dark"] .badge.bg-info {
    background-color: rgba(3, 105, 161, 0.2) !important;
    color: #76a9fa !important;
}

/* Secondary/Gray Badge */
.badge.bg-secondary {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
}
[data-bs-theme="dark"] .badge.bg-secondary {
    background-color: rgba(75, 85, 99, 0.2) !important;
    color: #9ca3af !important;
}

/* Flowbite-style Tab Overrides */
.nav-tabs {
    border-bottom: 1px solid #e5e7eb !important;
    background-color: transparent !important;
    gap: 1.5rem !important; /* spacing between tabs */
    padding-left: 0 !important;
    padding-right: 0 !important;
}

[data-bs-theme="dark"] .nav-tabs {
    border-bottom: 1px solid #374151 !important;
}

.nav-tabs .nav-item {
    margin-bottom: 0 !important;
}

.nav-tabs .nav-link,
.nav-tabs .nav-link:focus {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    padding: 0.35rem 0.15rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #6b7280 !important; /* Inactive text color */
    transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.nav-tabs .nav-link:hover {
    color: #374151 !important;
    border-bottom-color: #d1d5db !important;
    background: transparent !important;
    border: none !important;
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
    color: #d1d5db !important;
    border-bottom-color: #4b5563 !important;
}

/* Active tab state */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #1a56db !important; /* Flowbite Blue-600 */
    color: #1a56db !important; /* Active text color */
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active,
[data-bs-theme="dark"] .nav-tabs .nav-item.show .nav-link {
    border-bottom-color: #3f83f8 !important; /* Flowbite Blue-400 */
    color: #3f83f8 !important;
}

.card-header-tabs {
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
}

/* Form Inputs (Flowbite Vibe) */
.form-control,
.form-select,
textarea {
    font-size: 0.875rem !important; /* text-sm */
    color: #111827 !important; /* text-gray-900 */
    background-color: #ffffff !important; /* bg-white */
    border: 1px solid #d1d5db !important; /* border-gray-300 */
    border-radius: 0.5rem !important; /* rounded-lg (8px) */
    padding: 0.45rem 0.75rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    color: #111827 !important;
    background-color: #ffffff !important;
    border-color: #1a56db !important; /* Flowbite Blue-600 */
    box-shadow: 0 0 0 1px #1a56db !important;
    outline: 0 !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] textarea {
    color: #ffffff !important;
    background-color: #1f2937 !important;
    border-color: #4b5563 !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] textarea:focus {
    border-color: #3f83f8 !important;
    box-shadow: 0 0 0 1px #3f83f8 !important;
}

/* Checkbox and Radio styling (Flowbite Vibe) */
input[type="checkbox"],
input[type="radio"],
.form-check-input {
    width: 1.15rem !important;
    height: 1.15rem !important;
    margin-top: 0.15em !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.25rem !important; /* default checkbox shape */
    cursor: pointer !important;
    accent-color: #1a56db !important;
    box-shadow: none !important;
    transition: background-color 0.15s, border-color 0.15s !important;
}

input[type="radio"],
.form-check-input[type="radio"] {
    border-radius: 50% !important; /* round for radio buttons */
}

input[type="checkbox"]:focus,
input[type="radio"]:focus,
.form-check-input:focus {
    border-color: #1a56db !important;
    box-shadow: 0 0 0 1px #1a56db !important;
    outline: 0 !important;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked,
.form-check-input:checked {
    background-color: #1a56db !important;
    border-color: #1a56db !important;
}

[data-bs-theme="dark"] input[type="checkbox"],
[data-bs-theme="dark"] input[type="radio"],
[data-bs-theme="dark"] .form-check-input {
    background-color: #1f2937 !important;
    border-color: #4b5563 !important;
    accent-color: #3f83f8 !important;
}

[data-bs-theme="dark"] input[type="checkbox"]:focus,
[data-bs-theme="dark"] input[type="radio"]:focus,
[data-bs-theme="dark"] .form-check-input:focus {
    border-color: #3f83f8 !important;
    box-shadow: 0 0 0 1px #3f83f8 !important;
}

[data-bs-theme="dark"] input[type="checkbox"]:checked,
[data-bs-theme="dark"] input[type="radio"]:checked,
[data-bs-theme="dark"] .form-check-input:checked {
    background-color: #3f83f8 !important;
    border-color: #3f83f8 !important;
}

/* WYSIWYG Editor overrides (CKEditor 4 & 5 to match Flowbite) */
.cke_chrome, 
.ck.ck-editor {
    border: none !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

.cke_inner, 
.ck-editor__top, 
.cke_top, 
.ck-toolbar {
    background-color: #f9fafb !important;
    border-bottom: 1px solid #f3f4f6 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.cke_contents, 
.ck-content {
    background-color: #ffffff !important;
    border: none !important;
}

.cke_bottom {
    background-color: #f9fafb !important;
    border-top: 1px solid #f3f4f6 !important;
}

.cke_toolgroup {
    background: transparent !important;
    border: 1px solid #f3f4f6 !important;
    box-shadow: none !important;
    border-radius: 0.375rem !important;
}

.cke_button:hover {
    background-color: #f3f4f6 !important;
}

[data-bs-theme="dark"] .cke_chrome, 
[data-bs-theme="dark"] .ck.ck-editor {
    border: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .cke_inner, 
[data-bs-theme="dark"] .ck-editor__top, 
[data-bs-theme="dark"] .cke_top, 
[data-bs-theme="dark"] .ck-toolbar {
    background-color: #374151 !important;
    border-bottom-color: #4b5563 !important;
}

[data-bs-theme="dark"] .cke_contents, 
[data-bs-theme="dark"] .ck-content {
    background-color: #1f2937 !important;
}

[data-bs-theme="dark"] .cke_bottom {
    background-color: #374151 !important;
    border-top-color: #4b5563 !important;
}

/* Remove duplicate borders/shadows for nested card in Order flow */
#orderbutton.card {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
}

#orderbutton.card .card-body {
    padding: 0 !important;
}

/* Fix Tailwind/Flowbite .collapse conflict with Bootstrap collapse */
.collapse:not(.show) {
    display: none !important;
}

.accordion-collapse.collapse.show,
.collapse.show {
    visibility: visible !important;
    display: block !important;
}

.collapsing {
    visibility: visible !important;
}

/* Flowbite Premium Accordion & Product Card Overrides */
.accordion {
    --bs-accordion-bg: transparent !important;
    --bs-accordion-border-color: transparent !important;
}

.accordion-item {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="dark"] .accordion-item {
    border-color: #374151 !important;
    background-color: #1f2937 !important;
}

.accordion-button {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.75rem 1.25rem !important; /* tighter vertical padding */
}

.accordion-button:not(.collapsed) {
    background-color: #f9fafb !important;
    color: #1a56db !important;
    border-bottom: 1px solid #e5e7eb !important;
}

[data-bs-theme="dark"] .accordion-button {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #374151 !important;
    color: #3f83f8 !important;
    border-bottom-color: #4b5563 !important;
}

/* Category header styling inside selection */
.accordion-body h4 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.25rem !important;
}

.accordion-body span p {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    margin-bottom: 1rem !important;
}

[data-bs-theme="dark"] .accordion-body h4 {
    color: #d1d5db !important;
}

[data-bs-theme="dark"] .accordion-body span p {
    color: #9ca3af !important;
}

/* List group style changes to look like selection cards */
.accordion-body .list-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
}

.accordion-body .list-group-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 1.25rem !important; /* tighter vertical padding */
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease-in-out !important;
}

.accordion-body .list-group-item:hover {
    border-color: #1a56db !important;
    background-color: #f9fafb !important;
    color: #1a56db !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

.accordion-body .list-group-item svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    fill: currentColor !important;
    transition: transform 0.2s ease-in-out !important;
}

.accordion-body .list-group-item:hover svg {
    transform: translateX(4px) !important;
}

[data-bs-theme="dark"] .accordion-body .list-group-item {
    border-color: #374151 !important;
    background-color: #1f2937 !important;
    color: #f9fafb !important;
}

[data-bs-theme="dark"] .accordion-body .list-group-item:hover {
    border-color: #3f83f8 !important;
    background-color: #374151 !important;
    color: #3f83f8 !important;
}

/* Nav Pills (Vertical Tab styling for Domain Configuration) */
.nav-pills .nav-link {
    border-radius: 0.5rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
    color: #4b5563 !important;
    background-color: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.15s ease-in-out !important;
}

.nav-pills .nav-link:hover {
    background-color: #f3f4f6 !important;
    color: #1f2937 !important;
}

.nav-pills .nav-link.active {
    background-color: #1a56db !important;
    color: #ffffff !important;
    border-color: #1a56db !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link {
    color: #9ca3af !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link:hover {
    background-color: #374151 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link.active {
    background-color: #3f83f8 !important;
    color: #ffffff !important;
    border-color: #3f83f8 !important;
}

/* Domain Check / Small Form Control sizes to look tidy */
.form-control-sm,
.form-select-sm {
    padding: 0.375rem 0.625rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.375rem !important;
}

.accordion-body .tab-content {
    flex-grow: 1;
    padding-left: 0.5rem;
}

.accordion-body .d-flex.mb-3 {
    align-items: flex-start;
}

/* Ensure all table borders (including table-bordered) are soft gray instead of dark/black */
.table,
.table-bordered,
.table-bordered th,
.table-bordered td,
.table-bordered > :not(caption) > *,
.table-bordered > :not(caption) > * > * {
    border-color: #e5e7eb !important;
}

[data-bs-theme="dark"] .table,
[data-bs-theme="dark"] .table-bordered,
[data-bs-theme="dark"] .table-bordered th,
[data-bs-theme="dark"] .table-bordered td,
[data-bs-theme="dark"] .table-bordered > :not(caption) > *,
[data-bs-theme="dark"] .table-bordered > :not(caption) > * > * {
    border-color: #374151 !important;
}

/* Invoice payment gateway check-radio selection styling */
.invoice-gateway input[type="radio"]:checked + label {
    background-color: #1a56db !important;
    border-color: #1a56db !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 1px #1a56db !important;
}

[data-bs-theme="dark"] .invoice-gateway input[type="radio"]:checked + label {
    background-color: #3f83f8 !important;
    border-color: #3f83f8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 1px #3f83f8 !important;
}

/* Tighter cell padding for small tables (.table-sm) */
.table-sm > :not(caption) > * > * {
    padding: 0.35rem 0.5rem !important;
}

/* Make table first column (labels/keys) slightly bolder/highlighted */
.table td:first-child {
    font-weight: 500 !important;
    color: #374151 !important;
}

[data-bs-theme="dark"] .table td:first-child {
    color: #d1d5db !important;
}

/* Label styling (forms, checkboxes, etc.) */
label,
.col-form-label {
    font-weight: 500 !important;
    margin-top: 0.3rem !important;
    margin-bottom: 0.3rem !important;
    color: #374151 !important;
}

[data-bs-theme="dark"] label,
[data-bs-theme="dark"] .col-form-label {
    color: #d1d5db !important;
}

/* Ensure tab pane headers have enough breathing room below the tab bar line */
.tab-pane h3,
.tab-pane h4,
.tab-pane h5 {
    margin-top: 1.25rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
}

[data-bs-theme="dark"] .tab-pane h3,
[data-bs-theme="dark"] .tab-pane h4,
[data-bs-theme="dark"] .tab-pane h5 {
    color: #ffffff !important;
}

/* News/Blog Layout and Typography (Flowbite Vibe) */
.news-index .card-body .card {
    border: 1px solid #e5e7eb !important;
    background-color: #ffffff !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.news-index .card-body .card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.075) !important;
}

[data-bs-theme="dark"] .news-index .card-body .card {
    border-color: #374151 !important;
    background-color: #1f2937 !important;
}

.news-index .card-body .card-body {
    padding: 1.25rem 1.5rem !important;
}

/* Post Title */
.news-index .card-body h3.link-body-emphasis {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 0.35rem !important;
    transition: color 0.15s ease !important;
}

.news-index .card-body .card:hover h3.link-body-emphasis {
    color: #1a56db !important; /* Flowbite Blue */
}

[data-bs-theme="dark"] .news-index .card-body h3.link-body-emphasis {
    color: #ffffff !important;
}
[data-bs-theme="dark"] .news-index .card-body .card:hover h3.link-body-emphasis {
    color: #3f83f8 !important;
}

/* Post Date */
.news-index .card-body .text-muted {
    font-size: 0.825rem !important;
    color: #6b7280 !important;
    display: block !important;
    margin-bottom: 0.75rem !important;
}

/* Post Paragraph */
.news-index .card-body p {
    font-size: 0.925rem !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
    margin-bottom: 1rem !important;
}

[data-bs-theme="dark"] .news-index .card-body p {
    color: #9ca3af !important;
}

/* Continue Reading Link */
.news-index .card-body a.link-underline {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #1a56db !important; /* Flowbite Blue */
    text-decoration: none !important;
    gap: 0.25rem !important;
    transition: color 0.15s ease !important;
}

.news-index .card-body a.link-underline:hover {
    color: #1e429f !important;
}

[data-bs-theme="dark"] .news-index .card-body a.link-underline {
    color: #3f83f8 !important;
}
[data-bs-theme="dark"] .news-index .card-body a.link-underline:hover {
    color: #76a9fa !important;
}

/* Arrow SVG Icon */
.news-index .card-body a.link-underline svg.svg-icon {
    width: 1rem !important;
    height: 1rem !important;
    fill: currentColor !important;
    transition: transform 0.2s ease !important;
}

.news-index .card-body a.link-underline:hover svg.svg-icon {
    transform: translateX(3px) !important;
}

/* News Post Detail Typography */
.news-post .card {
    border: 1px solid #e5e7eb !important;
    background-color: #ffffff !important;
    border-radius: 0.75rem !important;
}

[data-bs-theme="dark"] .news-post .card {
    border-color: #374151 !important;
    background-color: #1f2937 !important;
}

.news-post h3.link-body-emphasis {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 0.5rem !important;
}

[data-bs-theme="dark"] .news-post h3.link-body-emphasis {
    color: #ffffff !important;
}

.news-post .text-muted {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}

.news-post .card-body p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #374151 !important;
    margin-bottom: 1.25rem !important;
}

[data-bs-theme="dark"] .news-post .card-body p {
    color: #d1d5db !important;
}

.news-post .card-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}