/* Header actions layout */
.header-top {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    min-height: 0% !important;
    display: flex;
    align-items: center;
}
.header-top-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 10px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-badge {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Button styling */
.btn.btn-primary {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    height: 40px;
    line-height: 24px;
    white-space: nowrap;
}

/* Danger small button: ensure consistent length/height next to primary */
.btn.btn-danger.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
    height: 36px;
    line-height: 20px;
    white-space: nowrap;
}

/* Google Translate styling */
#google_translate_element {
    min-width: 156px !important;
    margin-left: 10px !important;
    display: inline-block !important;
}

#google_translate_element .goog-te-gadget {
    font-family: inherit;
}

#google_translate_element .goog-te-gadget-simple {
    border: 1px solid #0d6efd !important;
    background-color: white !important;
    padding: 8px !important;
    border-radius: 4px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}

#google_translate_element .goog-te-gadget-simple > span {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

#google_translate_element select.goog-te-combo {
    border: 1px solid #0d6efd;
    background-color: white;
    padding: 8px 32px 8px 12px;
    border-radius: 4px;
    height: 40px;
    font-size: 14px;
    min-width: 156px;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 8px 8px;
}

/* Ensure visible text and consistent hover for the compact widget */
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value,
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span {
    color: #111827 !important;
    text-decoration: none !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span {
    display: inline !important;
}

#google_translate_element .goog-te-gadget-simple:hover,
#google_translate_element .goog-te-gadget-simple:focus {
    border-color: #0a66f1 !important;
    box-shadow: 0 0 0 3px rgba(13,110,253,0.12) !important;
}