/* This file may be used for providing additional customizations to the Trestle
 * admin. It will be automatically included within all admin pages.
 *
 * For organizational purposes, you may wish to define your customizations
 * within individual partials in this folder and they'll be required below.
 *

*/

/* .auth-header {
    margin-bottom: -50px;
} */

/* Image zoom effect on hover (magnifying glass effect) */
.image-zoom-container {
    overflow: hidden;
    border-radius: 4px;
    cursor: zoom-in;
    position: relative;
    display: block;
    height: fit-content;
}

.zoom-image {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: center center;
    will-change: transform;
}

/* Avatar zoom container in sidebar - no min-height restriction */
.sidebar .image-zoom-container {
    min-height: auto;
}

/* Center title-large horizontally within app-sidebar-title */
.app-sidebar-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-sidebar-title .title-large {
    display: block;
    width: 100%;
    text-align: center;
}

/* Search box improvements */
.searchbox {
    position: relative;
}

.searchbox .input-group {
    border-radius: 0.375rem;
    overflow: hidden;
    align-items: stretch;
}

.searchbox .input-group-prepend .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    height: auto;
}

.searchbox .input-group-prepend .input-group-text i,
.searchbox .input-group-prepend .input-group-text .fa {
    line-height: 2;
    margin: 0;
    padding: 0;
}

.searchbox .form-control {
    border-left: none;
    border-right: none;
}

.searchbox .form-control:focus {
    border-color: #ced4da;
    box-shadow: none;
}

.searchbox .input-group-append {
    display: flex;
    align-items: stretch;
}

.searchbox .input-group-append .clear-search {
    background-color: #fff;
    border-left: none;
    color: #dc3545;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    line-height: 2;
    height: auto;
}

.searchbox .input-group-append .clear-search i,
.searchbox .input-group-append .clear-search .fa {
    line-height: 2;
    margin: 0;
    padding: 0;
}

.searchbox .input-group-append .clear-search:hover {
    background-color: #f8f9fa;
    color: #c82333;
    transform: scale(1.1);
}

.searchbox .input-group-append .clear-search:focus {
    box-shadow: none;
    outline: none;
}

/* Avatar delete button in sidebar preview */
.avatar-preview-wrapper {
    position: relative;
}

.avatar-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #6c757d;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.avatar-delete-btn:hover {
    background-color: #5a6268;
    color: #ffffff;
    transform: scale(1.1);
}

.avatar-delete-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.avatar-delete-btn .fa-times {
    font-size: 14px;
    line-height: 1;
}
