@import url("griffinforms-logs.css");

:root {
    --gf-color-primary: #6f2cf2;
    --gf-color-primary-dark: #4c1aa8;
    --gf-color-primary-light: #9a6bfa;
    --gf-color-primary-rgba-65: rgba(111, 44, 242, 0.65);
    --gf-color-primary-rgba-50: rgba(111, 44, 242, 0.5);
    --gf-color-primary-rgba-18: rgba(111, 44, 242, 0.18);
    --gf-color-primary-rgba-12: rgba(111, 44, 242, 0.12);
    --gf-color-primary-rgba-10: rgba(111, 44, 242, 0.10);
    --gf-color-primary-rgba-05: rgba(111, 44, 242, 0.05);
    --gf-color-primary-rgba-02: rgba(111, 44, 242, 0.02);
    --gf-color-on-primary: #fff;
    
    --gf-color-success: #1c8f4c;
    --gf-color-danger: #d14343;
    --gf-color-warning: #c98216;
    --gf-color-info: #1a56db;
  
    --gf-color-bg: #f0f0f1;
    --gf-color-surface: #ffffff;
    --gf-color-border: #e1e1e1;
    --gf-color-text: #333;
    --gf-color-text-light: #888;
    --gf-color-surface-rgba-95: rgba(255, 255, 255, 0.95);
    --gf-color-surface-rgba-90: rgba(255, 255, 255, 0.9);
    --gf-color-surface-rgba-75: rgba(255, 255, 255, 0.75);
    --gf-shadow-floating-md: 0 6px 14px rgba(0, 0, 0, 0.18);
    --gf-color-scrollbar-track: #f0f0f0;
    --gf-color-scrollbar-thumb: rgba(100, 100, 100, 0.5);
    --gf-color-scrollbar-thumb-hover: rgba(100, 100, 100, 0.8);
  
    --gf-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --gf-font-size-base: 14px;
    --gf-font-size-sm: 12px;
    --gf-font-size-lg: 16px;
    
    --gf-spacing-xs: 4px;
    --gf-spacing-sm: 8px;
    --gf-spacing-md: 16px;
    --gf-spacing-lg: 24px;
    --gf-spacing-xl: 32px;
  
    --gf-border-radius: 6px;
  }

body {
    font-family: var(--gf-font-family);
    font-size: var(--gf-font-size-base);
    color: var(--gf-color-text);
    background-color: var(--gf-color-bg) !important;
    line-height: 1.5;
}

body.gf-onboarding-page,
html.gf-onboarding-page body,
body.griffinforms-forms_page_griffinforms-onboarding {
    background-color: #ffffff !important;
}

.gf-single-page {
    margin: 16px 20px 0 0;
}

.gf-single-page__shell {
    max-width: 1360px;
}

.gf-single-page__topnav {
    margin-bottom: 16px;
}

.gf-single-page__topnav .gf-btn,
.gf-single-page__topnav .button,
.gf-single-page__topnav a.button,
.gf-single-page__topnav .gf-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px !important;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #c3c4c7;
    color: #1d2327 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.gf-single-page__topnav .gf-btn-icon {
    flex: 0 0 auto;
}

.gf-single-page__topnav .gf-btn-label {
    line-height: 1;
}

.gf-single-page__topnav .gf-btn:hover,
.gf-single-page__topnav .gf-btn:focus,
.gf-single-page__topnav .button:hover,
.gf-single-page__topnav .button:focus,
.gf-single-page__topnav a.button:hover,
.gf-single-page__topnav a.button:focus,
.gf-single-page__topnav .gf-btn-light:hover,
.gf-single-page__topnav .gf-btn-light:focus {
    background: #f6f7f7;
    border-color: #8c8f94;
    color: #0a4b78 !important;
    box-shadow: 0 0 0 1px rgba(53, 130, 196, 0.2);
}

.gf-single-page__topnav .gf-btn:active,
.gf-single-page__topnav .button:active,
.gf-single-page__topnav a.button:active,
.gf-single-page__topnav .gf-btn-light:active {
    background: #f0f0f1;
    border-color: #8c8f94;
    color: #1d2327 !important;
}

.gf-single-page__header {
    background: var(--gf-color-surface);
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.gf-single-page__header .griffinforms-itempage-heading {
    margin: 0;
}

.gf-single-page__header .griffinforms-itempage-heading.row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-right: 0;
    margin-left: 0;
}

.gf-single-page__header .griffinforms-itempage-heading .col {
    display: flex;
    align-items: flex-start;
    padding-right: 0;
    padding-left: 0;
}

.gf-single-page__header .griffinforms-itempage-heading h3 {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #1d2327;
    text-wrap: balance;
}

.gf-single-page__header .griffinforms-itempage-heading .badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    margin-left: 0 !important;
    border-radius: 999px;
    background: #f0f6fc !important;
    color: #0a4b78 !important;
    border: 1px solid #c5d9ed;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    vertical-align: middle !important;
    text-shadow: none;
}

.gf-single-page__header .gf-log-page__entry-id {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    margin-left: 0 !important;
    border-radius: 999px;
    background: #f0f6fc !important;
    color: #0a4b78 !important;
    border: 1px solid #c5d9ed;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    vertical-align: middle !important;
    text-shadow: none;
    -webkit-text-fill-color: #0a4b78;
}

.gf-single-page__header-meta {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f1;
    color: #50575e;
}

.gf-single-page__header-meta .row {
    margin-top: 6px;
}

.gf-single-page__header-meta .row:first-child {
    margin-top: 0;
}

.gf-single-page__header-meta .small {
    font-size: 12px !important;
    line-height: 1.55;
}

.gf-single-page__header-meta .fw-semibold {
    font-weight: 600 !important;
    color: #2c3338;
}

.gf-single-page__header-meta .text-secondary {
    color: #646970 !important;
}

.gf-single-page__header-meta .griffinforms-item-history .d-flex {
    flex-wrap: wrap;
    gap: 10px 16px;
}

.gf-single-page__header-meta #griffinforms-item-create-history,
.gf-single-page__header-meta #griffinforms-item-edit-history {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.gf-single-page__header-meta .gf-item-history__user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gf-single-page__header-meta .gf-item-history__user img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    vertical-align: middle;
}

.gf-single-page__header-meta .gf-item-history__user-name {
    font-weight: 600;
    color: #1d2327;
}

.gf-single-page__header-meta .gf-item-history__text {
    color: #646970;
}

.gf-single-page__feedback {
    margin-bottom: 16px;
}

.gf-single-page__feedback-notice .notice {
    margin: 0;
}

.gf-single-page__feedback-notice .notice a,
#griffinforms-item-errors a {
    color: var(--wp-admin-theme-color, #2271b1);
}

.gf-single-page__feedback-notice .notice a:hover,
.gf-single-page__feedback-notice .notice a:focus,
#griffinforms-item-errors a:hover,
#griffinforms-item-errors a:focus {
    color: var(--wp-admin-theme-color-darker-20, #0a4b78);
}

.gf-single-page__body {
    min-width: 0;
}

.gf-single-page__body--with-nav {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.gf-single-page__nav {
    min-width: 0;
    position: sticky;
    top: calc(var(--wp-admin--admin-bar--height, 32px) + 16px);
    align-self: start;
}

.gf-single-page__nav-card {
    background: var(--gf-color-surface);
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 16px;
}

.gf-single-page__nav-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1d2327;
    margin-bottom: 10px;
}

.gf-single-page__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gf-single-page__nav-item + .gf-single-page__nav-item {
    margin-top: 6px;
}

.gf-single-page__nav-link {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: #1d2327;
    text-decoration: none;
    line-height: 1.35;
}

.gf-single-page__nav-link:hover,
.gf-single-page__nav-link:focus {
    background: #f6f7f7;
    color: #0a4b78;
}

.gf-single-page__content {
    min-width: 0;
}

.gf-single-section,
.gf-single-page__content > .container.w-75 {
    background: var(--gf-color-surface);
    border: 1px solid #dcdcde;
    border-radius: 10px;
    width: 100% !important;
    max-width: none !important;
    padding: 20px 24px;
    margin: 0 0 16px;
}

.gf-single-page__content > .container.w-75.border-bottom {
    border-bottom: 1px solid #dcdcde !important;
}

.gf-single-section__header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f1;
}

.gf-single-section__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1d2327;
}

.gf-single-section__description {
    margin: 6px 0 0;
    color: #646970;
    font-size: 13px;
}

.gf-single-page__content > .container.w-75 > h5,
.gf-single-page__content > .container.w-75 .gf-single-section__title {
    margin-top: 0;
}

.gf-single-page__footer {
    background: var(--gf-color-surface);
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 16px 24px;
}

.gf-single-page__footer--with-nav {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 24px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.gf-single-page__footer-spacer {
    min-width: 0;
}

.gf-single-page__footer-main {
    min-width: 0;
    background: var(--gf-color-surface);
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 16px 24px;
}

.gf-log-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gf-log-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 16px;
    align-items: start;
}

.gf-log-page__panel {
    background: var(--gf-color-surface);
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.gf-log-page__panel--message {
    height: 100%;
}

.gf-log-page__panel-head {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f1;
}

.gf-log-page__panel-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gf-log-page__panel-icon {
    width: 20px;
    height: 20px;
    color: #0a4b78;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gf-log-page__panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1d2327;
}

.gf-log-page__message-text {
    margin: 0;
    color: #1d2327;
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.gf-log-page__details {
    display: grid;
    gap: 14px;
    margin: 0;
}

.gf-log-page__detail {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f1;
}

.gf-log-page__detail:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.gf-log-page__detail-label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d2327;
    font-weight: 600;
    line-height: 1.4;
}

.gf-log-page__detail-icon {
    width: 16px;
    height: 16px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gf-log-page__panel-icon .material-symbols-rounded,
.gf-log-page__detail-icon .material-symbols-rounded {
    font-size: inherit;
    line-height: 1;
}

.gf-log-page .material-symbols-rounded {
    font-size: 20px;
}

.gf-log-page__detail-value {
    margin: 0;
    color: #50575e;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.gf-log-page__detail-value .button-link {
    margin-left: 8px;
}

.gf-log-page__details-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-start;
}

.gf-log-page__record {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gf-log-page__record-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.gf-log-page__record-body {
    min-width: 0;
}

.gf-log-page__record-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #1d2327;
}

.gf-log-page__record-subtitle {
    margin-top: 4px;
    color: #646970;
}

@media screen and (max-width: 1200px) {
    .gf-single-page__body--with-nav {
        grid-template-columns: 1fr;
    }

    .gf-single-page__nav {
        position: static;
    }

    .gf-single-page__footer--with-nav {
        grid-template-columns: 1fr;
    }

    .gf-single-page__footer-spacer {
        display: none;
    }

    .gf-log-page__layout {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 782px) {
    .gf-single-page {
        margin-right: 12px;
    }

    .gf-single-page__header,
    .gf-single-section,
    .gf-single-page__content > .container.w-75,
    .gf-single-page__footer,
    .gf-single-page__footer-main {
        padding: 16px;
    }

    .gf-single-page__header .griffinforms-itempage-heading h3 {
        font-size: 24px;
    }

    .gf-log-page__panel {
        padding: 16px;
    }

    .gf-log-page__detail {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .gf-log-page__record {
        align-items: flex-start;
    }
}

.gf-mb-md { margin-bottom: var(--gf-spacing-md); }
.gf-mt-md { margin-top: var(--gf-spacing-md); }
.gf-pt-sm { padding-top: var(--gf-spacing-sm); }
.gf-px-lg { padding-left: var(--gf-spacing-lg); padding-right: var(--gf-spacing-lg); }

.gf-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    display: inline-block;
}

.gf-icon-color-default {
    color: currentColor;
  }
  
  .gf-icon-color-primary {
    color: var(--gf-color-primary); /* violet */
  }
  
  .gf-icon-color-dark {
    color: #000; /* solid black */
  }

.gf-btn {
    padding: 8px 16px;
    font-size: var(--gf-font-size-base);
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.75rem !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    display: inline-block;
    box-shadow: none;
  }
  
  .gf-btn-primary {
    background-color: var(--gf-color-primary);
    border-color: var(--gf-color-primary);
    color: #fff !important;
  }

  .gf-btn-primary:hover,
  .gf-btn-primary:focus {
    background-color: var(--gf-color-primary-dark);
    border-color: var(--gf-color-primary-dark);
    color: #fff !important;
    box-shadow: none;
  }

  .gf-btn-primary:active {
    background-color: var(--gf-color-primary-dark);
    border-color: var(--gf-color-primary-dark);
    color: #fff !important;
  }
  .gf-btn-dark {
    background-color: #000;
    border-color: #000;
    color: #fff !important;
  }

  .gf-btn-dark:hover,
  .gf-btn-dark:focus {
    background-color: #222;
    border-color: #222;
    color: #fff !important;
    box-shadow: none;
  }

  .gf-btn-dark:active {
    background-color: #222;
    border-color: #222;
    color: #fff !important;
  }

  .gf-btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff !important;
  }

  .gf-btn-secondary:hover,
  .gf-btn-secondary:focus {
    background-color: #5a6268;
    border-color: #5a6268;
    color: #fff !important;
    box-shadow: none;
  }

  .gf-btn-secondary:active {
    background-color: #5a6268;
    border-color: #5a6268;
    color: #fff !important;
  }
  .gf-btn-danger {
    background-color: #d14343;
    border-color: #d14343;
    color: #fff !important;
  }

  .gf-btn-danger:hover,
  .gf-btn-danger:focus {
    background-color: #b03a3a;
    border-color: #b03a3a;
    color: #fff !important;
    box-shadow: none;
  }

  .gf-btn-danger:active {
    background-color: #9a3131;
    border-color: #9a3131;
    color: #fff !important;
  }
  .gf-btn-success {
    background-color: #1c8f4c;
    border-color: #1c8f4c;
    color: #fff !important;
  }

  .gf-btn-success:hover,
  .gf-btn-success:focus {
    background-color: #16743f;
    border-color: #16743f;
    color: #fff !important;
    box-shadow: none;
  }

  .gf-btn-success:active {
    background-color: #125d32;
    border-color: #125d32;
    color: #fff !important;
  }

  .gf-btn-warning {
    background-color: var(--gf-color-warning);
    border-color: var(--gf-color-warning);
    color: #fff !important;
  }

  .gf-btn-warning:hover,
  .gf-btn-warning:focus {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #212529 !important;
    box-shadow: none;
  }

  .gf-btn-warning:active {
    background-color: #e0a800;
    border-color: #e0a800;
    color: #212529 !important;
  }

  .gf-btn-info {
    background-color: var(--gf-color-info);
    border-color: var(--gf-color-info);
    color: #fff !important;
  }

  .gf-btn-info:hover,
  .gf-btn-info:focus {
    background-color: #138496;
    border-color: #138496;
    color: #fff !important;
    box-shadow: none;
  }

  .gf-btn-info:active {
    background-color: #138496;
    border-color: #138496;
    color: #fff !important;
  }

  .gf-btn-light {
    background-color: #eee;
    border-color: #eee;
    color: #000 !important;
  }

  .gf-btn-light:hover,
  .gf-btn-light:focus {
    background-color: #e2e6ea;
    border-color: #e2e6ea;
    color: #000 !important;
    box-shadow: none;
  }

  .gf-btn-light:active {
    background-color: #e2e6ea;
    border-color: #e2e6ea;
    color: #000 !important;
  }

  /* Disabled state for all buttons */
  .gf-btn:disabled,
  .gf-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc !important;
    border-color: #ccc !important;
    color: #666 !important;
    box-shadow: none !important;
  }

  .gf-btn:disabled:hover,
  .gf-btn[disabled]:hover,
  .gf-btn:disabled:focus,
  .gf-btn[disabled]:focus {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #ccc !important;
    border-color: #ccc !important;
    color: #666 !important;
    box-shadow: none !important;
  }

/* Text color utilities */
.gf-text-primary {
  color: var(--gf-color-primary) !important;
}

.gf-text-secondary {
  color: var(--gf-color-text-secondary, #6c757d) !important;
}

.gf-text-success {
  color: var(--gf-color-success) !important;
}

.gf-text-danger {
  color: var(--gf-color-danger) !important;
}

.gf-text-warning {
  color: var(--gf-color-warning) !important;
}

.gf-text-info {
  color: var(--gf-color-info) !important;
}

.gf-text-light {
  color: var(--gf-color-surface, #f8f9fa) !important;
}

.gf-text-dark {
  color: var(--gf-color-text-primary, #212529) !important;
}
  
  .gf-btn-outline {
    background-color: transparent;
    border-color: var(--gf-color-primary);
    color: var(--gf-color-primary) !important;
  }

  .gf-btn-outline:hover,
  .gf-btn-outline:focus {
    background-color: var(--gf-color-primary);
    border-color: var(--gf-color-primary);
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(111, 44, 242, 0.25);
  }

  .gf-btn-outline:active {
    background-color: var(--gf-color-primary-dark);
    border-color: var(--gf-color-primary-dark);
    color: #fff !important;
  }

/* GriffinForms Button Duplicate States Removed - Now in Button Base Classes */

.griffinforms-container {
    font-size: var(--gf-font-size-base);
}

.griffinforms-icon {
    font-size: 0.9rem;
}

a {
    cursor: pointer;
}

/* Large modals hide behind the sidebar on smaller screens. This fixes their visibility */
.griffinforms-container .modal {
  z-index: 100000;
}

/* Base notice */
.gf-notice {
  padding: 12px 16px;
  border-left: 4px solid var(--gf-color-primary);
  background-color: rgba(111, 44, 242, 0.05); /* light violet background */
  color: var(--gf-color-text);
  margin-bottom: var(--gf-spacing-md);
  font-size: var(--gf-font-size-sm);
  display: flex;
  align-items: start;
  gap: 12px;
}

/* Optional icon styling inside notice */
.gf-notice .gf-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Variant: Success */
.gf-notice-success {
  border-left-color: var(--gf-color-success);
  background-color: rgba(28, 143, 76, 0.08);
}

/* Variant: Warning */
.gf-notice-warning {
  border-left-color: var(--gf-color-warning);
  background-color: rgba(201, 130, 22, 0.1);
}

/* Variant: Danger/Error */
.gf-notice-danger {
  border-left-color: var(--gf-color-danger);
  background-color: rgba(209, 67, 67, 0.1);
}

/* Variant: Info */
.gf-notice-info {
  border-left-color: var(--gf-color-info);
  background-color: rgba(26, 86, 219, 0.08);
}

li.list-group-item {
    margin-bottom: 0px !important;
}

.griffinforms-formcontrol-inline-error {
	display: none;
}

.gf-entryalert-message-preview {
    background: #f8f9fa;
    border: 1px dashed #cfd4da;
    border-radius: 6px;
    padding: 6px 8px;
    min-height: 38px;
}

.gf-entryalert-message-name {
    font-weight: 600;
}

.gf-merge-token-panel {
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
}

.griffinforms-toast {
    position: fixed;
    right: 10px;
    top: 50px;
    z-index: 9999999;
}

.griffinforms-toast-container {
    bottom: 20px !important;
    left: 180px !important;
}

.griffinforms-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    visibility: hidden;
}

.griffinforms-spinner-wrapper {
    width: 300px;
}

input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], textarea {
    /*border: 1px solid #ced4da !important;*/
    min-width: 80% !important;
    font-size: 13px !important;
}

input[type=number] {
    min-width: 20% !important;
}

.griffinforms-hidden-option, #griffinforms-item-errors-wrap {
    display: none;
}

#griffinforms-selectitem-folderlist-wrap {
    overflow-y: scroll;
}

.griffinforms-modalitemlist-item:nth-child(even) {
    background-color: #f8f9fa!important;
}

.wp-picker-container {
    vertical-align: middle;
}

input[type=file] {
  padding: 5px !important;
  font-size: 12px;
}

@keyframes fadeOutHighlight {
  0% {
      background-color: rgba(255, 244, 97, 0.1); /* Start with the yellowish highlight color */
  }
  100% {
      background-color: transparent; /* End with a transparent background */
  }
}

.griffinforms-new-item-highlight {
  animation: fadeOutHighlight 3s forwards; /* Apply fade-out animation over 2 seconds */
}

.bg-griffin-subtle {
  background-color: rgb(229, 212, 255);
}

.griffinforms-container .text-griffin {
  --bs-text-opacity: 1; /* Keep the text opacity variable */
  color: var(--wp-admin-theme-color, #2271b1) !important; /* Use WP primary color with fallback */
  font-size: 0.75rem !important; 
  font-weight: 500 !important;
}

.griffinforms-container .nav-link {
  --bs-text-opacity: 1; /* Keep the text opacity variable */
  color: var(--wp-admin-theme-color, #2271b1) !important; /* Use WP primary color with fallback */
  font-size: 0.75rem !important; 
  letter-spacing: 0.25px;;
}

.griffinforms-container .nav-link:hover,
.griffinforms-container .nav-link:hover {
  color: blueviolet !important; /* GriffinForms purple on hover */
  border-bottom-color: transparent !important; /* Remove underline on hover */
}

.griffinforms-container .nav-link.active {
  color: rgba(0, 0, 0, var(--bs-text-opacity)) !important; /* GriffinForms purple in RGBA */
  font-weight: normal !important; /* Normal font weight for active link */
}

.griffinforms-container .text-primary {
  color: var(--wp-admin-theme-color, #2271b1) !important; /* Use WP primary color with fallback */
}

.griffinforms-container .btn {
  font-size: 0.7rem !important;
  padding: 0.5rem 1rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
}

.griffinforms-container .gf-wp-badge {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  margin: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background-color: #ffffff;
  color: #2271b1;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  z-index: 26;
  background-color: #fff;
}

.griffinforms-container .btn-primary {
  background-color: #2271b1 !important; 
  border-color: #2271b1 !important; 
  color: var(--gf-color-surface) !important; 
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s !important; /* Smooth transition for hover effects */
}

.griffinforms-container .btn-primary:hover, .btn-primary:focus {
  background-color: #236397 !important; 
  border-color: #236397 !important; 
  color: var(--gf-color-surface) !important;
}

.griffinforms-container .btn-primary:active {
  background-color: #236397 !important;
  border-color: #236397 !important;
  color: var(--gf-color-surface) !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
}

.griffinforms-container .btn-primary:disabled {
  background-color: var(--gf-color-primary-light) !important; /* Light purple for disabled state */
  border-color: var(--gf-color-primary-light) !important;
  color: var(--gf-color-text-light) !important; /* Lighter text for disabled state */
  opacity: 0.65 !important; /* Slight transparency for disabled */
}

.griffinforms-container .btn-outline-primary {
  color: var(--gf-color-primary) !important; /* GriffinForms purple for text */
  border-color: var(--gf-color-primary) !important; /* Purple outline */
  background-color: transparent !important; /* Transparent background */
  transition: background-color 0.3s, border-color 0.3s, color 0.3s !important; /* Smooth transitions */
}

.griffinforms-container .btn-outline-primary:hover, .btn-outline-primary:focus {
  color: var(--gf-color-surface) !important; /* White text on hover/focus */
  background-color: var(--gf-color-primary) !important; /* Purple background on hover/focus */
  border-color: var(--gf-color-primary) !important; /* Keep the purple border */
}

.griffinforms-container .btn-outline-primary:active {
  background-color: var(--gf-color-primary-dark) !important; /* Darker purple background on active/click */
  border-color: var(--gf-color-primary-dark) !important;
  color: var(--gf-color-surface) !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important; /* Inner shadow for pressed effect */
}

.griffinforms-container .btn-outline-primary:disabled {
  color: var(--gf-color-primary-light) !important; /* Light purple text for disabled state */
  border-color: var(--gf-color-primary-light) !important; /* Light purple outline for disabled state */
  background-color: transparent !important; /* No background */
  opacity: 0.65 !important; /* Slight transparency for disabled */
}

.griffinforms-container .list-group-item.active {
  z-index: 2;
  color: var(--wp-admin-theme-color--primary-text, #fff) !important; /* Primary text color fallback to white */
  background-color: var(--wp-admin-theme-color, #2271b1) !important; /* Admin primary color fallback */
  border-color: var(--wp-admin-theme-color, #2271b1) !important; /* Admin primary color fallback */
}

/* Define the fade-in effect */
.griffinforms-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

/* Keyframes for fade-in effect */
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}
/* GriffinForms utility: Text Danger */
.gf-text-danger {
  color: var(--gf-color-danger) !important;
}

/* Ensure button label color is enforced on <a> tags and inner spans */
.gf-btn * {
    color: inherit !important;
    text-decoration: none !important;
}

/* Specifically target .gf-btn-label inside .gf-btn to enforce color inheritance */
.gf-btn .gf-btn-label {
    color: inherit !important;
}
/* GriffinForms Custom Notices for Modals and Containers */
.gf-notice {
  padding: 12px 16px;
  border-left: 4px solid var(--gf-color-primary);
  background-color: rgba(111, 44, 242, 0.05);
  color: var(--gf-color-text);
  margin-bottom: var(--gf-spacing-md);
  font-size: var(--gf-font-size-sm);
  display: flex;
  align-items: start;
  gap: 12px;
  border-radius: 0;
}

.gf-notice-success {
  border-left-color: var(--gf-color-success);
  background-color: rgba(46, 204, 113, 0.1);
}

.gf-notice-warning {
  border-left-color: var(--gf-color-warning);
  background-color: rgba(243, 156, 18, 0.1);
}

.gf-notice-danger {
  border-left-color: var(--gf-color-danger);
  background-color: rgba(231, 76, 60, 0.1);
}

.gf-notice-info {
  border-left-color: var(--gf-color-info);
  background-color: rgba(52, 152, 219, 0.1);
}

.gf-notice p {
  margin: 0;
  padding: 0;
}

.gf-notice .gf-dismiss-notice {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--gf-color-text-light);
}

.gf-icon-wrapper svg {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}


.gf-rating-submission { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.gf-rating-submission-value { margin-left: 6px; font-size: 0.85em; color: #6b7280; }
