
.modal-bottom .modal-content textarea {
    min-height: 100px;
}

div.footer { margin: 20px 0; }

.appraisal-heading {
    font-size: 0.8rem;
}

.memoText { display: none; }

.boxed-btn.big {

    width: 100%;
    padding: 10px;

}


.header-wrap .header-left, .header-wrap .user-profile {

    min-width: 52px;

}

form.compact {

    .form-label { margin-bottom: 0.1em}

    select, input[type="text"], input[type="email"], input[type="tel"] {

        margin-bottom: -2px;
        font-size: 15px;

    }
}



.carPics {

    .card {

        margin: 10px 0;

        .card-body {

            padding: 0;

            .card-title {
                padding: 5px 10px 3px;
                font-size: 14px;
                line-height: 14px;
                margin: 0;
            }

        }

    }


}







#imageModal .modal-content {
    background-color: black;
    border: none;
}

#imageModal .modal-header {
    position: absolute;
    right: 0;
    z-index: 1;
    padding: 1rem;
}

#imageModal .modal-body {

    select { border-radius: 12px; }

}

#imageModal .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 1;
}
#imageModal .toolbar {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 1rem;
    border-radius: 50px;
}
#imageModal .btn-toolbar {
    background: transparent;
    border: none;
    padding: 0.5rem;
    transition: transform 0.2s;
}
#imageModal .btn-toolbar:hover {
    transform: scale(1.1);
}
#imageModal .btn-toolbar:active {
    transform: scale(0.95);
}
#imageModal .btn-toolbar .small {
    font-size: 0.75rem;
    opacity: 0.9;
}
#imageModal #processingStatus {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}
#imageModal #processingStatus .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}
#imageModal .boxed-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #666;
    border-color: inherit !important;
    color: inherit !important;
}
#aiCutoutResult {
    color: white;
    border: 1px solid #666;
    font-size: 14px;
    margin-top: 1rem;
}


/* Compare button styles */
#compareButton {
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#compareButton:active {
    transform: scale(0.95);
    background-color: #0056b3 !important;
}

#compareButton.comparing {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

#compareButton.comparing i {
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}



.web-btn {
    position: absolute;
    right: 15px;
    top: 0;
    color: #25abc0;
    margin: 0;
    padding-top: 0;
}


/* Stylish Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 85px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dc3545; /* Red for 'Hide' */
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-slider:after {
    content: 'HIDE';
    color: white;
    display: block;
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 65%;
    font-size: 10px;
    font-family: sans-serif;
}

input:checked + .toggle-slider {
    background-color: #28a745; /* Green for 'Show' */
}

input:checked + .toggle-slider:before {
    transform: translateX(51px);
}

input:checked + .toggle-slider:after {
    content: 'SHOW';
    left: 33%;
}

/* Dirty Form Indicators */
.nav-link.dirty {
    position: relative;
}

.nav-link.dirty::after {
    content: '●';
    color: #dc3545;
    position: absolute;
    top: -5px;
    right: 3px;
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1.2); }
}

.dirty-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none;
}

.dirty-warning .close-btn {
    float: right;
    cursor: pointer;
    font-weight: bold;
    color: #856404;
}

/* Fix for Save button visibility issues - Prevent focus-visible from interfering */
.btn.boxed-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    /* Maintain the original button styling when focused */
    background-color: inherit !important;
    border-color: inherit !important;
    color: inherit !important;
}

/* Enhanced Save button when form is dirty */
.tab-pane.dirty .btn.boxed-btn,
.form-dirty .btn.boxed-btn {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    animation: pulse-save 2s infinite;
}

/* Ensure dirty state styling overrides focus states */
.tab-pane.dirty .btn.boxed-btn:focus-visible,
.form-dirty .btn.boxed-btn:focus-visible,
.tab-pane.dirty .btn.boxed-btn:focus,
.form-dirty .btn.boxed-btn:focus {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    outline: none !important;
    box-shadow: none !important;
}

@keyframes pulse-save {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Success Alert Notification */
.success-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    min-width: 250px;
    animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-in 2.7s;
    animation-fill-mode: both;
}

/* Multiple alerts stacking */
.success-alert:nth-of-type(n+2) {
    top: calc(20px + 80px * (var(--alert-index, 1)));
}

.success-alert .check-icon {
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.success-alert .message {
    flex: 1;
    font-size: 14px;
}

.success-alert .close-btn {
    background: none;
    border: none;
    color: #155724;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.success-alert .close-btn:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}



.ajaxCont {

    display: none;
    background-color: #fff;
    font-family: monospace;
	width: 100%;
	margin: 20px 0;
	border: 1px solid #DF3239;
	padding: 10px;
	
	p { font-weight: 600; }


	#ajaxOutput { display: block; }

}
