#griffinforms-app-rightsidebar {
    width: 375px;
    box-shadow: rgba(0, 0, 0, 0.133) -1px 0px 0px 0px;
}

#griffinforms-app-rightsidebar .gf-integration-control-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #6b7280;
}

.nav-link,
.nav-link:hover {
    color: blueviolet;
}

.nav-underline .nav-link.active,
.nav-underline .show > .nav-link,
#griffinforms-app-fieldselection-reusable-fields-tab,
#griffinforms-app-fieldselection-field-types-tab {
    font-size: 0.75rem;
    padding: 20px;
    height: 48px;
    border-width: 1px !important;
}

.gf-rightsidebar-tabs .nav-link,
.gf-rightsidebar-tabs .nav-link.active {
    padding: 12px 16px !important;
    height: 44px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
}

.nav-underline .nav-link.active {
    border-color: #e5e7eb !important;    
}

.nav-underline .nav-link {
    color: #000 !important;
}

/* ----------------------------------------
   Right Sidebar Tabs (Form | Element)
----------------------------------------- */
.gf-rightsidebar-tabs {
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gf-rightsidebar-tablist {
    display: inline-flex;
    align-items: center;
}

.gf-rightsidebar-tab-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-right: 8px;
}

.gf-rightsidebar-accordion-action {
    border: 0;
    background: transparent;
    color: #5b5b5b;
    padding: 6px;
    line-height: 1;
}

.gf-rightsidebar-accordion-action .material-symbols-rounded {
    font-size: 18px;
}

.gf-rightsidebar-accordion-action:hover {
    color: #111;
}

.gf-rightsidebar-tabs .nav-link {
    border: 0;
    background: transparent;
    padding: 12px 16px;
    font-size: 0.8rem;
    color: #111;
    border-bottom: 0 !important;
}

.gf-rightsidebar-tabs .nav-link.active {
    color: blueviolet;
}

.gf-rightsidebar-tabs::after {
    content: "";
    position: absolute;
    left: var(--gf-tab-underline-left, 0px);
    bottom: -1px;
    width: var(--gf-tab-underline-width, 0px);
    height: 1.5px;
    background: blueviolet;
    transition: left 0.2s ease, width 0.2s ease;
}

.gf-rightsidebar-tabpanel[data-gf-tabpanel="form"] {
    display: block;
    overflow-y: auto;
    max-height: calc(100vh - var(--gf-wrapper-top, 0px) - 144px);
}

.gf-rightsidebar-tabpanel[data-gf-tabpanel="element"] {
    display: none;
}

/* Custom scrollbar styling for right sidebar (match form layout) */
#griffinforms-app-rightsidebar::-webkit-scrollbar,
#griffinforms-app-rightsidebar .gf-rightsidebar-tabpanel::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#griffinforms-app-rightsidebar::-webkit-scrollbar-track,
#griffinforms-app-rightsidebar .gf-rightsidebar-tabpanel::-webkit-scrollbar-track {
    background: var(--gf-color-scrollbar-track);
    border-radius: 4px;
}

#griffinforms-app-rightsidebar::-webkit-scrollbar-thumb,
#griffinforms-app-rightsidebar .gf-rightsidebar-tabpanel::-webkit-scrollbar-thumb {
    background-color: var(--gf-color-scrollbar-thumb);
    border-radius: 4px;
    border: 2px solid var(--gf-color-scrollbar-track);
}

#griffinforms-app-rightsidebar::-webkit-scrollbar-thumb:hover,
#griffinforms-app-rightsidebar .gf-rightsidebar-tabpanel::-webkit-scrollbar-thumb:hover {
    background-color: var(--gf-color-scrollbar-thumb-hover);
}

#griffinforms-app-rightsidebar,
#griffinforms-app-rightsidebar .gf-rightsidebar-tabpanel {
    scrollbar-width: thin;
    scrollbar-color: var(--gf-color-scrollbar-thumb) var(--gf-color-scrollbar-track);
}

/* Soften borders for form controls inside right sidebar */
#griffinforms-app-rightsidebar input,
#griffinforms-app-rightsidebar select,
#griffinforms-app-rightsidebar textarea {
    border: 2px solid #d0d4d9 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#griffinforms-app-rightsidebar .spinner-border {
    color: blueviolet !important;
}

#griffinforms-app-rightsidebar .gf-shortcode-pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    border: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    color: #111;
}

#griffinforms-app-fieldselection-field-types-tab .nav-link.active{
  color: blueviolet !important;
  border-color: blueviolet !important;
}


/* Soften accordion title typography in right sidebar */
#griffinforms-app-rightsidebar .accordion-button {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

#griffinforms-app-rightsidebar .accordion-button:hover {
    background-color: rgb(240, 240, 240);
}


/* ----------------------------------------
   Accordion: Custom Chevron Icon Handling
----------------------------------------- */
.accordion-button::after {
    display: none !important;
}

.gf-accordion-custom-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease-in-out;
    margin-left: auto;
}

.accordion-button:not(.collapsed) .gf-accordion-custom-chevron {
    transform: rotate(90deg); /* Downward when expanded */
}

.accordion-button.collapsed .gf-accordion-custom-chevron {
    transform: rotate(0deg); /* Right when collapsed */
}

/* ----------------------------------------
   Right Sidebar Accordion - Flush Styling
----------------------------------------- */
#griffinforms-app-rightsidebar .accordion-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
}

#griffinforms-app-rightsidebar .accordion-item:first-of-type,
#griffinforms-app-rightsidebar .accordion-item:last-of-type {
    border-radius: 0;
    border-top: 0;
}
