/* HQV Core - Shared styles */

/* Password toggle wrapper */
.password-wrapper {
    position: relative !important;
    display: block !important;
    width: 100%;
}

/* Keep password input styling when type changes to text */
.password-wrapper input.password-input {
    padding-right: 45px !important;
    width: 100% !important;
}

/* Ensure .password-input inherits password field appearance */
input.password-input[type="text"] {
    -webkit-text-security: none;
}

.password-toggle {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 8px !important;
    margin: 0 !important;
    color: #6c757d;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 10 !important;
    line-height: 1;
    height: auto;
    min-height: 0;
}

.password-toggle:hover {
    opacity: 1;
    background: transparent !important;
}

.password-toggle:focus,
.password-toggle:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Password toggle icon using Roundcube's font */
.password-toggle:before {
    content: "\f06e"; /* eye icon */
    font-family: Icons;
    font-weight: 400;
    font-size: 14px;
}

.password-toggle.showing:before {
    content: "\f070"; /* eye-slash icon */
}

/* Back button z-index fix */
.back-list-button,
.back-sidebar-button {
    z-index: 100;
    position: relative;
}

/* Hide footer navigation for HQV plugins on mobile */
@media (max-width: 768px) {
    .task-domainadmin .content-frame-navigation,
    .task-superadmin .content-frame-navigation,
    .task-settings .content-frame-navigation,
    .task-domainadmin .footer.toolbar,
    .task-superadmin .footer.toolbar {
        display: none !important;
    }
}
