/* lelang by jivee - style.css */

html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body,
.card,
.form-control,
.input-group-text,
.alert,
.navbar,
.dropdown-menu {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.form-control:not(textarea) {
    height: 45px;
}

[data-bs-theme="dark"] body {
    background: #0f0f1a;
}

[data-bs-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .card {
    background: #111827;
    border: 1px solid #1f2933 !important;
}

[data-bs-theme="dark"] .dropdown-menu {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background: #1f2933;
}

[data-bs-theme="dark"] .table {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .form-control:not(textarea),
[data-bs-theme="dark"] .form-select {
    background: #1f2933 !important;
    border-color: #374151 !important;
    color: #fff !important;
    height: 45px !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] textarea.form-control {
    background: #1f2933 !important;
    border-color: #374151 !important;
    color: #fff !important;
    box-shadow: none !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background: #1f2933 !important;
    border-color: #3b82f6 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
}

[data-bs-theme="dark"] .input-group-text {
    background: #1f2933;
    border-color: #374151;
    color: #aaa;
}

/* Nice Select Custom Styling */
.nice-select {
    width: 100% !important;
    height: 45px !important;
    line-height: 43px !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    padding-left: 15px !important;
    padding-right: 35px !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
}

.nice-select:after {
    right: 15px !important;
    top: 50% !important;
    margin-top: -4px !important;
}

.nice-select .current {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.nice-select .list {
    width: 100% !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    margin-top: 5px !important;
    z-index: 9999 !important;
}

.nice-select .option {
    line-height: 40px !important;
    min-height: 40px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

[data-bs-theme="dark"] .nice-select {
    background: #1f2933 !important;
    border: 1px solid #374151 !important;
    color: #fff !important;
    box-shadow: none !important;
    height: 45px !important;
    line-height: 43px !important;
    background-clip: padding-box !important;
}

[data-bs-theme="dark"] .nice-select:after {
    border-bottom: 2px solid #6b7280 !important;
    /* Warna panah lebih soft */
    border-right: 2px solid #6b7280 !important;
}

[data-bs-theme="dark"] .nice-select .list {
    background-color: #111827 !important;
    border: 1px solid #1f2933 !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .nice-select .option {
    color: #e5e7eb !important;
}

[data-bs-theme="dark"] .nice-select .option:hover,
[data-bs-theme="dark"] .nice-select .option.focus,
[data-bs-theme="dark"] .nice-select .option.selected.focus {
    background-color: #1f2933 !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .nice-select .option.selected {
    font-weight: bold !important;
    color: #3b82f6 !important;
}

[data-bs-theme="light"] body {
    background: #f1f5f9;
}

[data-bs-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 20px;
}

.auction-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.alert {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-pulse {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95) translate(-50%, -50%);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1) translate(-50%, -50%);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95) translate(-50%, -50%);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.auth-body {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 6px;
}

/* Premium Buttons Styling */
.btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: #fff;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    color: #fff;
}

.btn-success {
    background: #10b981;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.btn-warning {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #3b82f6 !important;
    color: #3b82f6;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid #64748b !important;
    color: #64748b;
}

.btn-outline-secondary:hover {
    background: #64748b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
}

.btn-outline-success {
    background: transparent;
    border: 2px solid #10b981 !important;
    color: #10b981;
}

.btn-outline-success:hover {
    background: #10b981;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.btn-light {
    background: rgba(0, 0, 0, 0.05);
    color: #4b5563;
}

[data-bs-theme="dark"] .btn-light {
    background: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
}

.btn:active {
    transform: scale(0.95);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.rounded-circle.btn {
    padding: 0;
    border-radius: 50% !important;
}

.table th {
    font-weight: 600;
    font-size: 13px;
}

footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
}

[data-bs-theme="dark"] footer {
    border-top: 1px solid #1f2933;
}

.dropdown-menu {
    min-width: 200px;
    padding: 8px;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: dropdownFade 0.3s ease;
}

[data-bs-theme="light"] .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    transform: translateX(3px);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        padding: 10px 0;
    }

    .navbar-nav .nav-link,
    .navbar-nav .dropdown-toggle {
        padding: 8px 0;
    }

    .navbar-nav .dropdown-menu {
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: unset;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    .navbar-nav .dropdown-item {
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 8px;
    }
}

html,
body {
    min-height: 100dvh;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    overflow: hidden;
}

.main-content main {
    flex: 1;
}

.sidebar-wrapper {
    flex: 1;
    height: calc(100dvh - 56px);
    min-height: calc(100dvh - 56px);
    overflow: hidden;
}

.sidebar {
    width: 240px;
    height: calc(100dvh - 56px);
    min-height: calc(100dvh - 56px);
    position: sticky;
    top: 56px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

[data-bs-theme="dark"] .sidebar {
    background: #111827;
    border-right: 1px solid #1f2933;
}

[data-bs-theme="light"] .sidebar {
    background: #fff;
    border-right: 1px solid #e5e7eb;
}

.sidebar-user {
    flex-shrink: 0;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

[data-bs-theme="dark"] .sidebar-user {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-user:hover {
    background: rgba(0, 0, 0, 0.01);
}

[data-bs-theme="dark"] .sidebar-user:hover {
    background: rgba(255, 255, 255, 0.01);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 8px 8px;
}

/* Custom Scrollbar for all scrollable elements */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.7);
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 8px;
    padding-bottom: 4px;
}

.sidebar-link {
    display: flex !important;
    align-items: center;
    padding: 12px 18px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar-link:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
    padding-left: 22px;
}

.sidebar-link.active {
    background: #3b82f6 !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transform: translateX(5px);
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background: #fff;
    border-radius: 0 4px 4px 0;
}

.sidebar-link i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sidebar-link:hover i {
    transform: scale(1.2) rotate(-5deg);
}

[data-bs-theme="dark"] .sidebar-link {
    color: #94a3b8;
}

[data-bs-theme="dark"] .sidebar-link:not(.active):hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.sidebar-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 16px 24px 8px;
    opacity: 1;
    position: sticky;
    top: 0;
    z-index: 10;
}

[data-bs-theme="dark"] .sidebar-label {
    background: #111827;
}

[data-bs-theme="light"] .sidebar-label {
    background: #fff;
}

.main-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 56px);
    min-height: calc(100dvh - 56px);
}

[data-bs-theme="dark"] .offcanvas {
    background: #111827;
}

.offcanvas {
    height: 100dvh;
}

.offcanvas-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.offcanvas-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 8px 8px;
}

.offcanvas-footer {
    flex-shrink: 0;
    padding: 8px;
}

.sidebar-footer,
.offcanvas-footer {
    margin-top: auto;
}

.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-nav>hr {
    margin: 8px 16px;
}

.sidebar .sidebar-section {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar .sidebar-section-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px 5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.sidebar .sidebar-section-items {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 200px;
    padding: 0 5px;
}

.offcanvas .sidebar-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.offcanvas .sidebar-section-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px 5px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.offcanvas .sidebar-section-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 0 8px;
}



[data-bs-theme="dark"] .sidebar-section-label {
    background: #111827;
}

[data-bs-theme="light"] .sidebar-section-label {
    background: #fff;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ==========================================================================
   PREMIUM INPUTS & SELECTS
   ========================================================================== */
.form-control {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background-color: #fff;
}

.form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    outline: none;
}

[data-bs-theme="dark"] .form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f3f4f6 !important;
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}