html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
.divider-text {
    position: relative;
    text-align: center;
}

    .divider-text span {
        padding: 0 .75rem;
        background: #fff;
        position: relative;
        z-index: 1;
    }

    .divider-text:after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        border-top: 1px solid #ddd;
        z-index: 0;
    }
.toast {
    opacity: 0.95;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 280px;
}

    .toast.text-bg-danger {
        background: linear-gradient(45deg, #dc3545, #c82333);
    }

    .toast.text-bg-warning {
        background: linear-gradient(45deg, #ffc107, #e0a800);
    }

    .toast.text-bg-success {
        background: linear-gradient(45deg, #28a745, #218838);
    }

    .toast.text-bg-info {
        background: linear-gradient(45deg, #17a2b8, #138496);
    }

.modal {
    display: block !important;
}

.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

.confirm-dialog-modal {
    z-index: 20000; /* lebih tinggi dari bootstrap modal (1050) dan toast Anda */
}

.upload-zone {
    border: 3px dashed #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

    .upload-zone:hover {
        border-color: #0d6efd;
        background: linear-gradient(135deg, #e7f3ff 0%, #cfe2ff 100%);
        transform: scale(1.01);
    }

.upload-label {
    cursor: pointer;
    margin: 0;
    padding: 2rem;
}

.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.image-preview-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .image-preview-card:hover {
        border-color: #0d6efd;
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }

.image-actions-overlay {
    opacity: 0;
    transition: opacity 0.2s;
}

.image-preview-card:hover .image-actions-overlay {
    opacity: 1;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.custom-accordion .accordion-item {
    border: 1px solid #e9ecef;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: #f0f4ff;
    color: #0d6efd;
}

.sticky-bottom {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-top: 1px solid #dee2e6;
}

.bg-body-bg {
    background-color: #f8f9fa !important;
}

.h-55 {
    height: 55px;
}

.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    }

.icon-shape {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.x-small {
    font-size: 0.7rem;
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.min-width-0 {
    min-width: 0;
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.x-small {
    font-size: 0.75rem;
}

.min-width-0 {
    min-width: 0;
}

.animate-pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.ls-1 {
    letter-spacing: 1px;
}

.card-hover {
    transition: all 0.3s ease;
}

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
    }

.icon-box {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.x-small {
    font-size: 0.75rem;
}

.min-width-0 {
    min-width: 0;
}

.hover-shadow:hover {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
    background-color: #fff !important;
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

/* Animation Pulse for Loading */
@keyframes pulse-opacity {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse-opacity 1.5s infinite;
}
/* --- Masukkan di paling bawah app.css --- */

/* 1. GALLERY CONTAINER RESPONSIVE */
.gallery-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
}

.main-image-stage {
    /* Height adaptif: Mobile 300px, Desktop 450px */
    height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    position: relative;
    cursor: zoom-in; /* Indikasi bisa di klik */
}

@media (min-width: 768px) {
    .main-image-stage {
        height: 450px;
    }
}

.main-image-stage img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* Agar gambar utuh tidak terpotong */
    transition: transform 0.3s ease;
}

/* 2. NAVIGATION BUTTONS (PREV/NEXT) */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    color: #333;
    font-size: 1.2rem;
}

    .gallery-nav-btn:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.nav-prev {
    left: 15px;
}

.nav-next {
    right: 15px;
}

/* 3. THUMBNAIL STRIP */
.thumbnail-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 2px;
    scrollbar-width: thin;
}

    .thumbnail-strip::-webkit-scrollbar {
        height: 4px;
    }

    .thumbnail-strip::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

.thumb-item {
    width: 70px; /* Lebih kecil */
    height: 50px;
    flex-shrink: 0;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.2s;
}

    .thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .thumb-item:hover {
        opacity: 1;
    }

    .thumb-item.active-thumb {
        border-color: #0d6efd;
        opacity: 1;
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
    }

/* 4. COMPACT SPECS */
.spec-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Auto fit responsif */
    gap: 0.5rem;
}

.spec-item-compact {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem; /* Font lebih kecil */
}

    .spec-item-compact i {
        font-size: 1.2rem;
        color: #0d6efd;
        margin-bottom: 2px;
        display: block;
    }

.spec-label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.spec-value {
    font-weight: 700;
    color: #333;
    font-size: 0.85rem;
}

/* 5. GENERAL COMPACT STYLES */
.text-justify-custom {
    text-align: justify;
    font-size: 0.9rem;
    line-height: 1.6;
}

.card-compact {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 10px; /* Rounded medium */
}
.nav-scroller {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .nav-scroller::-webkit-scrollbar {
        display: none;
    }
/* Hide scrollbar */
.border-dashed {
    border: 2px dashed #dee2e6 !important;
}

.cursor-pointer {
    cursor: pointer;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
    border-color: #adb5bd !important;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-xs {
    font-size: 0.75rem;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.transition-opacity {
    transition: opacity 0.2s ease-in-out;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hover-opacity-100 {
        opacity: 1 !important;
        background: transparent !important;
        pointer-events: none;
    }
        /* Disable overlay on mobile */
        .hover-opacity-100 button {
            pointer-events: auto;
            background: white;
            color: black;
            border: 1px solid #ddd;
            display: none;
        }
}