/* ======================================================
   ROOT VARIABLES
====================================================== */
:root {
    --brand-primary: #2f4f88;
    --brand-primary-dark: #243e6e;
}

/* ======================================================
   GLOBAL
====================================================== */
body {
    background-color: #ffffff;
}

.center {
    text-align: center;
}

/* ======================================================
   FOOTER (LEGACY)
====================================================== */
#footer {
    background-color: rgba(13, 110, 253);
    text-align: center;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 10px;
}

/* ======================================================
   LOGO & HERO
====================================================== */
.logo-img {
    height: 45px;
    width: 45px;
    display: inline-block;
    vertical-align: middle;
    background: url('/images/logo-jhipster.png') no-repeat center center;
    background-size: contain;
}

.hipster {
    display: inline-block;
    width: 287px;
    height: 437px;
    background: url('/images/c0f-25th.png') no-repeat center top;
    background-size: contain;
}

/* ======================================================
   PREMIUM NAVBAR
====================================================== */
.navbar-premium {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 0.35rem 0;
}

.navbar-premium .navbar-brand {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    color: #fff;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: opacity 0.2s ease;
}

.navbar-premium .navbar-brand:hover {
    opacity: 0.85;
}

.navbar-premium .brand-logo {
    transition: transform 0.3s ease;
}

.navbar-premium .navbar-brand:hover .brand-logo {
    transform: scale(1.1);
}

.navbar-premium .nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-premium .nav-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

.navbar-premium .nav-link.active {
    color: #fff !important;
}

/* Active underline */
.navbar-premium .nav-item.active > .nav-link::after,
.navbar-premium .nav-item.dropdown.show > .nav-link::after {
    content: "";
    position: absolute;
    left: 20%;
    bottom: -6px;
    width: 60%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
}

/* ======================================================
   PREMIUM DROPDOWN
====================================================== */
.navbar-premium .dropdown-menu {
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    border: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    animation: fadeSlide 0.18s ease-out;
}

.navbar-premium .dropdown-item {
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.navbar-premium .dropdown-item:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
}

.navbar-premium .dropdown-item i {
    width: 18px;
}

/* ======================================================
   BUTTONS & LINKS
====================================================== */
.btn-premium {
    background: linear-gradient(135deg, #1f4ea3, #2b6cb0);
    border: none;
    color: #fff;
    padding: 10px 22px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-premium:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Brand Button */
.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.6rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(47, 79, 136, 0.25);
}

.btn-brand:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
/* ===== FORM ACTION BUTTONS ===== */

.btn-form-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    font-weight: 500;
    padding: 6px 18px;
    border-radius: 0.6rem;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(47,79,136,0.25);
}

.btn-form-primary:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.btn-form-outline {
    background: transparent;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 0.6rem;
    transition: all 0.2s ease;
}
.btn-form-outline:hover {
    background-color: var(--brand-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(47,79,136,0.25);
}

.btn-form-outline:hover i {
    color: #fff;
}

.btn-form-cancel {
    background-color: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 0.6rem;
    transition: all 0.2s ease;
}

.btn-form-cancel:hover {
    background-color: #e2e6ea;
    color: #495057;
    transform: translateY(-1px);
}

/* ===== DELETE BUTTON ===== */

.btn-form-danger {
    background-color: #fff;
    border: 1px solid #dc3545;
    color: #dc3545;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 0.6rem;
    transition: all 0.2s ease;
}

.btn-form-danger:hover {
    background-color: #dc3545;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(220,53,69,0.25);
}

/* Premium Link */
.link-premium {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.link-premium::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -3px;
    background: #2b6cb0;
    transition: width 0.3s ease;
}

.link-premium:hover::after {
    width: 100%;
}

/* ======================================================
   CARDS & CONTENT
====================================================== */
.jh-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 10px;
    margin: 10px 0;
    animation: fadeInUp 0.6s ease;
}

.card {
    border-radius: 1rem;
}

.card-body {
    padding: 1.2rem 0;
}

.content-wrapper {
    background-color: #f8f9fb;
    border-radius: 1.5rem;
    padding: 2rem;
}

/* ======================================================
   TABLE
====================================================== */
.table th,
.table td {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    font-size: 0.92rem;
}

/* ======================================================
   FORMS
====================================================== */
.form-control:focus {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.form-control {
    border-radius: 0.6rem;
}

.input-group-text {
    border-radius: 0.6rem 0 0 0.6rem;
}

.form-select-sm {
    height: 32px;
    border-radius: 0.6rem;
}

/* ======================================================
   PAGINATION
====================================================== */
.pagination {
    font-size: 0.9rem;
}

.pagination-wrapper {
    gap: 1rem;
}

.total-text {
    font-size: 0.9rem;
    color: #6c757d;
}

.custom-pagination .page-link {
    border: none;
    color: var(--brand-primary);
    font-weight: 500;
    margin: 0 4px;
    border-radius: 0.6rem;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.custom-pagination .page-link:hover {
    background-color: rgba(47, 79, 136, 0.08);
    color: var(--brand-primary-dark);
}

.custom-pagination .page-item.active .page-link {
    background-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(47, 79, 136, 0.25);
}

.custom-pagination .page-item.disabled .page-link {
    background: none;
    color: #999;
    cursor: default;
}

/* ======================================================
   FOOTER PREMIUM
====================================================== */
.footer-premium {
    background: linear-gradient(135deg, #1f4ea3, #243b6b);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-premium strong {
    color: #fff;
}

/* ======================================================
   ANIMATIONS
====================================================== */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-table-action {
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
}

.btn-table-action i {
    font-size: 0.7rem;   /* kecilkan icon */
}

.input-group-sm .form-control {
    border-radius: 0.6rem 0 0 0.6rem;
}

.input-group-sm .input-group-text {
    border-radius: 0 0.6rem 0.6rem 0;
}
.table-responsive table {
    min-width: 1100px;   /* paksa lebih lebar dari container */
}

.table th,
.table td {
    white-space: nowrap; /* supaya kolom tidak turun ke bawah */
}

.search-box .form-control {
    border-radius: 0.6rem 0 0 0.6rem;
}

.search-box .input-group-text {
    border-radius: 0 0.6rem 0.6rem 0;
}
.detail-card {
    padding: 2rem 2.5rem;
}
.detail-card .row {
    margin-left: 0;
    margin-right: 0;
}

.login-card {
    border-radius: 1.2rem;
    padding: 0.5rem;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.login-action {
    border-top: 1px solid #e9ecef;
}

.login-card .form-control {
    height: 45px;
}

.login-card .btn-premium {
    min-width: 120px;
}

body {
    background: linear-gradient(135deg, #f4f6fb, #eef1f7);
}
.money-cell {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
/* ======================================================
   HOME / INDEX PAGE
====================================================== */
.home-hero {
    background: linear-gradient(135deg, #1f4ea3, #20c997);
    color: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(31, 78, 163, 0.18);
}

.home-badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.home-feature-card,
.home-benefit-card,
.home-contact-card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
}

.home-feature-card:hover,
.home-benefit-card:hover,
.home-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.home-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 1rem;
}

.home-icon-blue {
    background: #0d6efd;
}

.home-icon-green {
    background: #198754;
}

.home-icon-orange {
    background: #fd7e14;
}

.home-icon-purple {
    background: #6f42c1;
}

.home-pricing {
    background: linear-gradient(135deg, #198754, #20c997);
    color: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(25, 135, 84, 0.18);
}

.home-list {
    padding-left: 1.2rem;
}

.home-list li {
    margin-bottom: 0.55rem;
}

@media (max-width: 768px) {
    .home-hero,
    .home-pricing {
        border-radius: 1.1rem;
    }
}

/* ======================================================
   HOME V2 / LANDING PAGE PREMIUM
====================================================== */
.home2-hero {
    background: linear-gradient(135deg, #1f4ea3 0%, #20c997 100%);
    color: #fff;
    border-radius: 1.6rem;
    box-shadow: 0 20px 40px rgba(31, 78, 163, 0.18);
}

.home2-badge {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.home2-mini-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.home2-mini-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.home2-problem-card,
.home2-feature-card,
.home2-rental-card,
.home2-contact-card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
}

.home2-problem-card:hover,
.home2-feature-card:hover,
.home2-rental-card:hover,
.home2-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.home2-problem-icon {
    font-size: 2rem;
    margin-bottom: 0.9rem;
}

.home2-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 1rem;
}

.home2-icon-blue {
    background: #0d6efd;
}

.home2-icon-green {
    background: #198754;
}

.home2-icon-orange {
    background: #fd7e14;
}

.home2-rental-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.35rem;
}

.home2-pricing {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: #fff;
    border-radius: 1.6rem;
    box-shadow: 0 20px 40px rgba(25, 135, 84, 0.18);
}

.home2-list {
    padding-left: 1.2rem;
}

.home2-list li {
    margin-bottom: 0.55rem;
}

.home2-faq .accordion-button {
    box-shadow: none !important;
    padding: 1rem 1.2rem;
}

.home2-faq .accordion-button:not(.collapsed) {
    background: #f8f9fb;
    color: #1f2937;
}

.home2-faq .accordion-body {
    color: #4b5563;
    background: #fff;
}

@media (max-width: 768px) {
    .home2-hero,
    .home2-pricing {
        border-radius: 1.1rem;
    }
}

/* ======================================================
   APP LAYOUT POLISH
====================================================== */
.app-main {
    min-height: calc(100vh - 140px);
    padding-top: 10px;
}

.page-shell {
    max-width: 1600px;
    margin: 0 auto;
}

.page-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
}

.cashier-modal-premium {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.cashier-modal-premium .modal-header {
    background: linear-gradient(135deg, #1f4ea3, #2b6cb0);
    color: #fff;
    border-bottom: none;
}

.cashier-modal-premium .btn-close {
    filter: brightness(0) invert(1);
}

/* Navbar toggler icon biar kelihatan di background gelap */
.navbar-premium .navbar-toggler {
    border-color: rgba(255,255,255,0.25);
}

.navbar-premium .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.15);
}

.navbar-premium .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}
