/* Button Styles
--------------------------------------------------------------*/
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--bs-primary-hover) !important;
    border-color: var(--bs-primary-hover) !important;
}

.btn-primary:active,
.btn-primary.active {
    background-color: var(--bs-primary-active) !important;
    border-color: var(--bs-primary-active) !important;
}

/* BUTTON SECONDARY */
.btn-secondary {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--bs-secondary-hover) !important;
    border-color: var(--bs-secondary-hover) !important;
}

.btn-secondary:active,
.btn-secondary.active {
    background-color: var(--bs-secondary-active) !important;
    border-color: var(--bs-secondary-active) !important;
}

/* BUTTON SUCCESS */
.btn-success {
    background-color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
    color: var(--bs-white) !important;
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--bs-success-hover) !important;
    border-color: var(--bs-success-hover) !important;
}

.btn-success:active,
.btn-success.active {
    background-color: var(--bs-success-active) !important;
    border-color: var(--bs-success-active) !important;
}

/* BUTTON DANGER */
.btn-danger {
    background-color: var(--bs-danger) !important;
    border-color: var(--bs-danger) !important;
    color: var(--bs-white) !important;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: var(--bs-danger-hover) !important;
    border-color: var(--bs-danger-hover) !important;
}

.btn-danger:active,
.btn-danger.active {
    background-color: var(--bs-danger-active) !important;
    border-color: var(--bs-danger-active) !important;
}

/* BUTTON WARNING */
.btn-warning {
    background-color: var(--bs-warning) !important;
    border-color: var(--bs-warning) !important;
    color: var(--bs-black) !important;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: var(--bs-warning-hover) !important;
    border-color: var(--bs-warning-hover) !important;
}

.btn-warning:active,
.btn-warning.active {
    background-color: var(--bs-warning-active) !important;
    border-color: var(--bs-warning-active) !important;
}

/* BUTTON INFO */
.btn-info {
    background-color: var(--bs-info) !important;
    border-color: var(--bs-info) !important;
    color: var(--bs-white) !important;
}

.btn-info:hover,
.btn-info:focus {
    background-color: var(--bs-info-hover) !important;
    border-color: var(--bs-info-hover) !important;
}

.btn-info:active,
.btn-info.active {
    background-color: var(--bs-info-active) !important;
    border-color: var(--bs-info-active) !important;
}

/* BUTTON LIGHT */
.btn-light {
    background-color: var(--bs-light) !important;
    border-color: var(--bs-light) !important;
    color: #1f2937 !important;
}

.btn-light:hover,
.btn-light:focus {
    background-color: var(--bs-light-hover) !important;
    border-color: var(--bs-light-hover) !important;
}

.btn-light:active,
.btn-light.active {
    background-color: var(--bs-light-active) !important;
    border-color: var(--bs-light-active) !important;
}

/* BUTTON DARK */
.btn-dark {
    background-color: var(--bs-dark) !important;
    border-color: var(--bs-dark) !important;
    color: var(--bs-white) !important;
}

.btn-dark:hover,
.btn-dark:focus {
    background-color: var(--bs-dark-hover) !important;
    border-color: var(--bs-dark-hover) !important;
}

.btn-dark:active,
.btn-dark.active {
    background-color: var(--bs-dark-active) !important;
    border-color: var(--bs-dark-active) !important;
}

/* OUTLINE BUTTONS */
.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.btn-outline-secondary {
    color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

.btn-outline-success {
    color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
    background-color: transparent !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background-color: var(--bs-success) !important;
    border-color: var(--bs-success) !important;
    color: var(--bs-white) !important;
}

.btn-outline-danger {
    color: var(--bs-danger) !important;
    border-color: var(--bs-danger) !important;
    background-color: transparent !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background-color: var(--bs-danger) !important;
    border-color: var(--bs-danger) !important;
    color: var(--bs-white) !important;
}

.btn-outline-warning {
    color: var(--bs-warning) !important;
    border-color: var(--bs-warning) !important;
    background-color: transparent !important;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus {
    background-color: var(--bs-warning) !important;
    border-color: var(--bs-warning) !important;
    color: var(--bs-black) !important;
}

.btn-outline-info {
    color: var(--bs-info) !important;
    border-color: var(--bs-info) !important;
    background-color: transparent !important;
}

.btn-outline-info:hover,
.btn-outline-info:focus {
    background-color: var(--bs-info) !important;
    border-color: var(--bs-info) !important;
    color: var(--bs-white) !important;
}

.btn-outline-light {
    color: var(--bs-light) !important;
    border-color: var(--bs-light) !important;
    background-color: transparent !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: var(--bs-light) !important;
    border-color: var(--bs-light) !important;
    color: #1f2937 !important;
}

.btn-outline-dark {
    color: var(--bs-dark) !important;
    border-color: var(--bs-dark) !important;
    background-color: transparent !important;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background-color: var(--bs-dark) !important;
    border-color: var(--bs-dark) !important;
    color: var(--bs-white) !important;
}

/* NO ROUNDED & NO SHADOW */
.btn,
.btn:focus,
.btn:hover,
.btn:active {
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}


/* Form Input
--------------------------------------------------------------*/
/* FORM INPUT, SELECT, TEXTAREA */
.form-control,
.form-select,
textarea.form-control {
    border-radius: 0 !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* FORM FLOATING */
.form-floating > .form-control,
.form-floating > .form-control-plaintext,
.form-floating > .form-select {
    border-radius: 0 !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: none !important;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown),
.form-floating > .form-select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* FORM CHECK - CHECKBOX & RADIO */
.form-check-input {
    border-radius: 0 !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: none !important;
    width: 1.5em !important;
    height: 1.5em !important;
}

.form-check-input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: none !important;
    outline: none !important;
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary) !important;
    box-shadow: none !important;
}

/* Checkbox */
.form-check-input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 1.2em !important;
}

/* Radio */
.form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-size: 1.2em !important;
}

/* BUTTONS */
.btn,
.btn:focus,
.btn:hover,
.btn:active {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.btn:focus {
    outline: none !important;
}

/* Labels */
.form-check-label {
    margin-left: 0.75rem;
    font-size: 1.1em;
    line-height: 1.5;
}

.form-check {
    min-height: 2.5rem;
    padding-left: 2em;
    margin-bottom: 1rem;
}

/* Accordion Styles
--------------------------------------------------------------*/
/* ACCORDION REWRITE */
.accordion {
    --bs-accordion-border-color: #e5e7eb !important;
    --bs-accordion-border-width: 1px !important;
    --bs-accordion-border-radius: 0 !important;
    --bs-accordion-inner-border-radius: 0 !important;
    --bs-accordion-btn-focus-border-color: #3b82f6 !important;
    --bs-accordion-btn-focus-box-shadow: none !important;
}

.accordion-button {
    border-radius: 0 !important;
    border: 1px solid #e5e7eb !important;
    background-color: white !important;
    color: #1f2937 !important;
    font-weight: 500;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease-in-out;
}

/* Accordion button ketika tidak aktif */
.accordion-button:not(.collapsed) {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
    box-shadow: none !important;
}

/* Accordion button ketika aktif/ditekan */
.accordion-button:active,
.accordion-button:focus {
    background-color: var(--bs-primary-hover) !important;
    border-color: var(--bs-primary-hover) !important;
    color: white !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Hilangkan arrow default BS5 */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231f2937'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    transform: rotate(0deg) !important;
    transition: transform 0.2s ease-in-out !important;
}

/* Arrow ketika aktif */
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    transform: rotate(180deg) !important;
}

/* Accordion body */
.accordion-body {
    border: 1px solid #e5e7eb !important;
    border-top: none !important;
    border-radius: 0 !important;
    padding: 1.25rem;
    background-color: white;
}

/* Accordion item */
.accordion-item {
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0.5rem;
}

/* Hilangkan border yang tidak perlu */
.accordion-button.collapsed {
    border-bottom: 1px solid #e5e7eb !important;
}

/* Hover effect */
.accordion-button:hover {
    background-color: #f8fafc !important;
}

.accordion-button:not(.collapsed):hover {
    background-color: var(--bs-primary-hover) !important;
}

/* Flush accordion variant */
.accordion-flush .accordion-button {
    border-left: none !important;
    border-right: none !important;
}

.accordion-flush .accordion-body {
    border-left: none !important;
    border-right: none !important;
}


/* Form Wizard Section
--------------------------------------------------------------*/

/* Form Wizard Styles */
.form-wizard {
    position: relative;
}
.form-wizard .steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}
.form-wizard .steps:before {
    content: '';
    position: absolute;
    top: 39px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--bs-primary) var(--progress, 0%), var(--bs-gray-200) var(--progress, 0%));
    z-index: 1;
    transition: all 0.5s ease;
}
.form-wizard .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}
.form-wizard .step .step-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background-color: var(--bs-gray-200);
    color: var(--bs-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 3px solid var(--bs-gray-200);
    font-size: 1.1rem;
}
.form-wizard .step.active .step-icon {
    background-color: var(--bs-primary);
    color: var(--bs-white);
    border-color: var(--bs-primary);
    transform: scale(1.05);
    box-shadow: 0 0 0 5px rgba(40, 167, 69, 0.2);
}
.form-wizard .step.completed .step-icon {
    background-color: #198754;
    color: var(--bs-white);
    border-color: #198754;
}
.form-wizard .step .step-label {
    font-size: 0.85rem;
    color: var(--bs-gray-600);
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}
.form-wizard .step.active .step-label {
    color: var(--bs-primary);
    font-weight: 600;
}
.form-wizard .step.completed .step-label {
    color: #198754;
}


.form-wizard .progress-bar {
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.5s ease;
}


/* Form Step Styles */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeIn 0.5s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navigation Buttons */
.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bs-gray-200);
}

/* Step progress percentage */
.step-progress {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--bs-primary);
}
.form-step .btn-prev, .form-step .btn-next{border-radius: 0;}


/* Animate form wizard */
.wizard-animating {
    pointer-events: none;
}

.wizard-animating::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 0.7; }
}

.form-step {
    position: relative;
    overflow: hidden;
}

/* Smooth transitions */
.form-wizard * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
.form-wizard::-webkit-scrollbar {
    width: 6px;
}

.form-wizard::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.form-wizard::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.form-wizard::-webkit-scrollbar-thumb:hover {
    background: #555;
}



/* Slim Dropzone Section
--------------------------------------------------------------*/
.slim-dropzone {
    padding: 1rem .75rem;
    border: 1px solid #ced4da;
    border-radius: 0;
    transition: all 0.3s ease;
}

.slim-dropzone:hover {
    border-color: var(--color-primary);
    background: #f8f9ff;
}

.slim-dropzone .dropzone-title {
    font-size: 1rem;font-weight: 500;opacity: .65;
    /* display: flex;align-items: center;gap: 10px; */
}

.slim-dropzone .upload-area {
    border: 2px dashed var(--color-primary);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.slim-dropzone .upload-area:hover {
    background: #eef1ff;
    border-color: #764ba2;
}

.slim-dropzone .upload-icon {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.slim-dropzone .upload-text {
    color: #666;
    margin-bottom: 8px;
}

.slim-dropzone .btn-browse {
    color: var(--color-primary);
    font-weight: bold;
    cursor: pointer;
}

.slim-dropzone .btn-browse:hover {
    text-decoration: underline;
}

.slim-dropzone .file-input {
    display: none;
}

.slim-dropzone .preview-container {
    display: none;
    margin-top: 15px;
    text-align: center;
}

.slim-dropzone .preview-item {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 200px;
}

.slim-dropzone .preview-img {
    max-width: 100%;
    max-height: 200px;
    display: block;
}

.slim-dropzone .btn-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,0,0,0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.slim-dropzone .btn-delete:hover {
    background: rgba(255,0,0,1);
    transform: scale(1.slim-dropzone .1);
}

.slim-dropzone .file-info {
    margin-top: 10px;
}

.slim-dropzone .file-name {
    color: #333;
    font-weight: 500;
    word-break: break-word;
    margin-bottom: 5px;
}

.slim-dropzone .file-size {
    color: #666;
    font-size: 12px;
}

.slim-dropzone .change-image {
    margin-top: 10px;
    color: var(--color-primary);
    cursor: pointer;
    font-weight: 500;
    display: inline-block;
    font-size: 14px;
}

.slim-dropzone .change-image:hover {
    text-decoration: underline;
}

