@import url('./colors.css');
/* UI Playground v3 Styles - Only for UI Playground page */

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

/* Universal font application */
* {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ssgc-body {
    background: var(--ssgc-bglight2-alpine) !important;
    color: var(--ssgc-textonlightsecondary) !important;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Ensure all text elements use Public Sans */
body,
html,
p,
span,
div,
button,
input,
select,
textarea,
label,
a,
h1,
h2,
h3,
h4,
h5,
h6,
li,
td,
th {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ssgc-bg-light1 {
    background-color: var(--ssgc-bglight1-white-smoke) !important;
}

.ssgc-bg-light2 {
    background-color: var(--ssgc-bglight2-alpine) !important;
}

.ssgc-bg-light3 {
    background-color: var(--ssgc-bglight3-smoke) !important;
}

/* ==========================================================================
   CONTAINER OVERRIDES
   ========================================================================== */

/* Container-specific overrides */
.ssgc-v3-container .card-title {
    border-bottom: none !important;
}

.ssgc-v3-container .card {
    background-color: inherit !important;
}

.ssgc-v3-container .card-header {
    padding: 0;
}

.ssgc-v3-container .card-title:hover {
    color: inherit !important;
    border-bottom-color: inherit !important;
    font-weight: inherit !important;
}

/* Remove container-wrapper padding and margin for v3 container page */
/* Since container-wrapper is a parent of v3-container, we need to target it differently */
body:has(.ssgc-v3-container) .container-wrapper,
.container-wrapper:has(.ssgc-v3-container) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding-top: 1em !important;
}

/* Add spacing between buttons in v3 container page btn-group */
.ssgc-v3-container .btn-group .ssgc-btn:not(:last-child) {
    margin-right: 8px;
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

/* Primary Button */
.ssgc-btn-primary {
    background-color: var(--ssgc-orange) !important;
    color: var(--ssgc-white) !important;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s, background-color .4s;
    border: none;
}

.ssgc-btn-primary:hover,
.ssgc-btn-primary:focus {
    box-shadow: 0 3px 0 0 var(--ssgc-accentdark-mahogany) !important;
    color: var(--ssgc-white) !important;
    transform: translate(0, -3px);
    background-color: var(--ssgc-orange) !important;
    text-decoration: none !important;
}

.ssgc-btn-primary:active,
.ssgc-btn-primary.active,
.show>.ssgc-btn-primary.dropdown-toggle {
    background-color: var(--ssgc-orange) !important;
    box-shadow: 0 2px 0 0 var(--ssgc-accentdark-mahogany) !important;
    color: var(--ssgc-white) !important;
    transform: translate(0, -2px);
}

/* Secondary Button */
.ssgc-btn-secondary {
    background-color: var(--ssgc-gunmetal) !important;
    color: var(--ssgc-white) !important;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s, background-color .4s;
    border: none;
}

.ssgc-btn-secondary:hover,
.ssgc-btn-secondary:focus {
    box-shadow: 0 3px 0 0 var(--ssgc-independence) !important;
    color: var(--ssgc-white) !important;
    transform: translate(0, -3px);
    background-color: var(--ssgc-gunmetal) !important;
}

.ssgc-btn-secondary:active,
.ssgc-btn-secondary.active,
.show>.ssgc-btn-secondary.dropdown-toggle {
    background-color: var(--ssgc-gunmetal) !important;
    box-shadow: 0 2px 0 0 var(--ssgc-independence) !important;
    color: var(--ssgc-white) !important;
    transform: translate(0, -2px);
}

/* Success Button */
.ssgc-btn-success {
    background-color: var(--ssgc-success-green) !important;
    color: var(--ssgc-white) !important;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s, background-color .4s;
    border: none;
}

.ssgc-btn-success:hover,
.ssgc-btn-success:focus {
    box-shadow: 0 3px 0 0 #007a3d !important;
    color: var(--ssgc-white) !important;
    transform: translate(0, -3px);
    background-color: var(--ssgc-success-green) !important;
}

.ssgc-btn-success:active,
.ssgc-btn-success.active,
.show>.ssgc-btn-success.dropdown-toggle {
    background-color: var(--ssgc-success-green) !important;
    box-shadow: 0 2px 0 0 #007a3d !important;
    color: var(--ssgc-white) !important;
    transform: translate(0, -2px);
}

/* Danger Button */
.ssgc-btn-danger {
    background-color: var(--ssgc-error-red) !important;
    color: var(--ssgc-white) !important;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s, background-color .4s;
    border: none;
}

.ssgc-btn-danger:hover,
.ssgc-btn-danger:focus {
    box-shadow: 0 3px 0 0 #a00020 !important;
    color: var(--ssgc-white) !important;
    transform: translate(0, -3px);
    background-color: var(--ssgc-error-red) !important;
}

.ssgc-btn-danger:active,
.ssgc-btn-danger.active,
.show>.ssgc-btn-danger.dropdown-toggle {
    background-color: var(--ssgc-error-red) !important;
    box-shadow: 0 1px 0 0 #a00020 !important;
    color: var(--ssgc-white) !important;
    transform: translate(0, -2px);
}

/* Light Button (Outline Style) */
.ssgc-btn-light {
    border: 1px none var(--ssgc-orange) !important;
    box-shadow: inset 0 0 0 1px var(--ssgc-orange) !important;
    color: var(--ssgc-orange) !important;
    background-color: rgba(var(--ssgc-black-rgb), 0) !important;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: box-shadow .2s, background-color .4s;
}

.ssgc-btn-light:hover,
.ssgc-btn-light:focus {
    box-shadow: inset 0 0 0 2px var(--ssgc-orange) !important;
    color: var(--ssgc-orange) !important;
    background-color: rgba(var(--ssgc-orange-rgb), 0.13) !important;
}

.ssgc-btn-light:active,
.ssgc-btn-light.active,
.show>.ssgc-btn-light.dropdown-toggle {
    box-shadow: inset 0 0 0 1px var(--ssgc-sand) !important;
    background-color: rgba(var(--ssgc-orange-rgb), 0.25) !important;
    color: var(--ssgc-orange) !important;
}

/* Light Danger Button (Outline Style) */
.ssgc-btn-light-danger {
    border: 1px none var(--ssgc-error-red) !important;
    box-shadow: inset 0 0 0 1px var(--ssgc-error-red) !important;
    color: var(--ssgc-error-red) !important;
    background-color: rgba(var(--ssgc-black-rgb), 0) !important;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: box-shadow .2s, background-color .4s;
}

.ssgc-btn-light-danger:hover,
.ssgc-btn-light-danger:focus {
    box-shadow: inset 0 0 0 2px var(--ssgc-error-red) !important;
    color: var(--ssgc-error-red) !important;
    background-color: rgba(var(--ssgc-error-red-rgb), 0.13) !important;
}

.ssgc-btn-light-danger:active,
.ssgc-btn-light-danger.active,
.show>.ssgc-btn-light-danger.dropdown-toggle {
    box-shadow: inset 0 0 0 1px #a00020 !important;
    background-color: rgba(var(--ssgc-error-red-rgb), 0.25) !important;
    color: var(--ssgc-error-red) !important;
}

/* Light Success Button (Outline Style) */
.ssgc-btn-light-success {
    border: 1px none var(--ssgc-success-green) !important;
    box-shadow: inset 0 0 0 1px var(--ssgc-success-green) !important;
    color: var(--ssgc-success-green) !important;
    background-color: rgba(var(--ssgc-black-rgb), 0) !important;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: box-shadow .2s, background-color .4s;
}

.ssgc-btn-light-success:hover,
.ssgc-btn-light-success:focus {
    box-shadow: inset 0 0 0 2px var(--ssgc-success-green) !important;
    color: var(--ssgc-success-green) !important;
    background-color: rgba(var(--ssgc-success-green-rgb), 0.13) !important;
}

.ssgc-btn-light-success:active,
.ssgc-btn-light-success.active,
.show>.ssgc-btn-light-success.dropdown-toggle {
    box-shadow: inset 0 0 0 1px #007a3d !important;
    background-color: rgba(var(--ssgc-success-green-rgb), 0.25) !important;
    color: var(--ssgc-success-green) !important;
}

/* Light Secondary Button (Outline Style) */
.ssgc-btn-light-secondary {
    border: 1px none var(--ssgc-gunmetal) !important;
    box-shadow: inset 0 0 0 1px var(--ssgc-gunmetal) !important;
    color: var(--ssgc-gunmetal) !important;
    background-color: rgba(var(--ssgc-black-rgb), 0) !important;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    transition: box-shadow .2s, background-color .4s;
}

.ssgc-btn-light-secondary:hover,
.ssgc-btn-light-secondary:focus {
    box-shadow: inset 0 0 0 2px var(--ssgc-gunmetal) !important;
    color: var(--ssgc-gunmetal) !important;
    background-color: rgba(var(--ssgc-gunmetal-rgb), 0.13) !important;
}

.ssgc-btn-light-secondary:active,
.ssgc-btn-light-secondary.active,
.show>.ssgc-btn-light-secondary.dropdown-toggle {
    box-shadow: inset 0 0 0 1px var(--ssgc-independence) !important;
    background-color: rgba(var(--ssgc-gunmetal-rgb), 0.25) !important;
    color: var(--ssgc-gunmetal) !important;
}

/* Link Button */
.ssgc-btn-link {
    background-color: rgba(var(--ssgc-black-rgb), 0) !important;
    background-image: linear-gradient(to top, rgba(var(--ssgc-orange-rgb), 0), var(--ssgc-sand) 0%, var(--ssgc-orange) 3%, rgba(var(--ssgc-orange-rgb), 0) 7%, rgba(var(--ssgc-orange-rgb), 0)) !important;
    color: var(--ssgc-orange) !important;
    letter-spacing: .4px;
    text-transform: capitalize;
    margin-bottom: 8px;
    padding: 10px 0 5px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none !important;
    transition: background-color .4s, background-image .4s, color .4s;
    border: none;
}

.ssgc-btn-link:hover,
.ssgc-btn-link:focus {
    background-image: linear-gradient(to top, rgba(var(--ssgc-orange-rgb), 0), var(--ssgc-sand) 0%, var(--ssgc-sand) 6%, rgba(var(--ssgc-orange-rgb), 0) 6%, rgba(var(--ssgc-orange-rgb), 0)) !important;
    color: var(--ssgc-sand) !important;
    text-decoration: none !important;
}

/* Ghost Buttons */
.ssgc-btn-ghost {
    display: inline-block;
    color: var(--ssgc-orange) !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 2px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    text-align: left;
    width: 100%;
}

.ssgc-btn-ghost:hover,
.ssgc-btn-ghost:focus {
    box-shadow: inset 0 0 0 1px var(--ssgc-orange) !important;
    color: var(--ssgc-orange) !important;
    background-color: rgba(var(--ssgc-orange-rgb), 0.13) !important;
    text-decoration: none !important;
}

.ssgc-btn-ghost-danger {
    color: var(--ssgc-error-red) !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 2px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    text-align: left;
    width: 100%;
}

.ssgc-btn-ghost-danger:hover,
.ssgc-btn-ghost-danger:focus {
    box-shadow: inset 0 0 0 1px var(--ssgc-error-red) !important;
    color: var(--ssgc-error-red) !important;
    background-color: rgba(var(--ssgc-danger-rgb), 0.13) !important;
}

/* Button States */
.ssgc-btn.disabled,
.ssgc-btn:disabled,
.ssgc-btn-primary:disabled,
.ssgc-btn-secondary:disabled,
.ssgc-btn-success:disabled,
.ssgc-btn-danger:disabled,
.ssgc-btn-light:disabled,
.ssgc-btn-light-secondary:disabled,
.ssgc-btn-light-danger:disabled,
.ssgc-btn-light-success:disabled,
.ssgc-btn-link:disabled,
.ssgc-btn-ghost:disabled,
.ssgc-btn-ghost-danger:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    transition: none !important;
}

/* Light buttons need to maintain their border when disabled */
.ssgc-btn-light:disabled,
.ssgc-btn-light-secondary:disabled,
.ssgc-btn-light-danger:disabled,
.ssgc-btn-light-success:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    transition: none !important;
    /* Maintain the border but with reduced opacity */
    box-shadow: inset 0 0 0 1px currentColor !important;
}

.ssgc-btn.disabled:hover,
.ssgc-btn.disabled:focus,
.ssgc-btn.disabled:active,
.ssgc-btn:disabled:hover,
.ssgc-btn:disabled:focus,
.ssgc-btn:disabled:active,
.ssgc-btn-primary:disabled:hover,
.ssgc-btn-primary:disabled:focus,
.ssgc-btn-primary:disabled:active,
.ssgc-btn-secondary:disabled:hover,
.ssgc-btn-secondary:disabled:focus,
.ssgc-btn-secondary:disabled:active,
.ssgc-btn-success:disabled:hover,
.ssgc-btn-success:disabled:focus,
.ssgc-btn-success:disabled:active,
.ssgc-btn-danger:disabled:hover,
.ssgc-btn-danger:disabled:focus,
.ssgc-btn-danger:disabled:active,
.ssgc-btn-light:disabled:hover,
.ssgc-btn-light:disabled:focus,
.ssgc-btn-light:disabled:active,
.ssgc-btn-light-secondary:disabled:hover,
.ssgc-btn-light-secondary:disabled:focus,
.ssgc-btn-light-secondary:disabled:active,
.ssgc-btn-light-danger:disabled:hover,
.ssgc-btn-light-danger:disabled:focus,
.ssgc-btn-light-danger:disabled:active,
.ssgc-btn-light-success:disabled:hover,
.ssgc-btn-light-success:disabled:focus,
.ssgc-btn-light-success:disabled:active,
.ssgc-btn-link:disabled:hover,
.ssgc-btn-link:disabled:focus,
.ssgc-btn-link:disabled:active,
.ssgc-btn-ghost:disabled:hover,
.ssgc-btn-ghost:disabled:focus,
.ssgc-btn-ghost:disabled:active,
.ssgc-btn-ghost-danger:disabled:hover,
.ssgc-btn-ghost-danger:disabled:focus,
.ssgc-btn-ghost-danger:disabled:active {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    transform: none !important;
    background-color: inherit !important;
    color: inherit !important;
}

/* Light buttons maintain their border when disabled in hover/focus/active states */
.ssgc-btn-light:disabled:hover,
.ssgc-btn-light:disabled:focus,
.ssgc-btn-light:disabled:active,
.ssgc-btn-light-secondary:disabled:hover,
.ssgc-btn-light-secondary:disabled:focus,
.ssgc-btn-light-secondary:disabled:active,
.ssgc-btn-light-danger:disabled:hover,
.ssgc-btn-light-danger:disabled:focus,
.ssgc-btn-light-danger:disabled:active,
.ssgc-btn-light-success:disabled:hover,
.ssgc-btn-light-success:disabled:focus,
.ssgc-btn-light-success:disabled:active {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    transform: none !important;
    background-color: transparent !important;
    color: inherit !important;
    box-shadow: inset 0 0 0 1px currentColor !important;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

.ssgc-form-group {
    margin-bottom: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
}

.ssgc-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--ssgc-textprimaryonlight);
    font-size: 0.875em;
    letter-spacing: -0.01em;
    text-transform: capitalize;
}

/* Checkbox Container */
.ssgc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.ssgc-checkbox label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: normal;
    color: var(--ssgc-textprimaryonlight);
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.ssgc-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.ssgc-form-control {
    border: 1px solid var(--ssgc-gunmetal) !important;
    border-radius: 1px !important;
    margin-bottom: 0.5rem !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    line-height: 26px !important;
    transition: box-shadow .1s, border-width .15s cubic-bezier(.075, .82, .165, 1) !important;
    box-shadow: none !important;
    background-color: white;
    width: 100%;
    box-sizing: border-box;
    height: 39px;
}

.ssgc-form-control:hover {
    box-shadow: 0 0 0 1px var(--ssgc-black) !important;
}

/*
   TODO: Check if the color #43464d is visually similar to color.
   If it is, replace this hardcoded value with the corresponding CSS variable for consistency.
*/
.ssgc-form-control:active {
    border-color: #43464d !important;
}

.ssgc-form-control:focus {
    box-shadow: 0 0 0 1px var(--ssgc-black), 0 0 0 2px var(--ssgc-sand) !important;
    border-color: var(--ssgc-richblack) !important;
    background-color: var(--ssgc-bglight1-white-smoke);
}

select.ssgc-form-control {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: normal !important;
    height: 39px !important;
}

/* Custom Checkbox Styling */
.ssgc-form-group input[type="checkbox"],
.ssgc-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--ssgc-gunmetal);
    border-radius: 1px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 0;
    align-self: flex-start;
    padding: 10px;
}

.ssgc-form-group input[type="checkbox"]:hover,
.ssgc-checkbox input[type="checkbox"]:hover {
    border-color: var(--ssgc-black);
    box-shadow: 0 0 0 1px var(--ssgc-black);
}

.ssgc-form-group input[type="checkbox"]:focus,
.ssgc-checkbox input[type="checkbox"]:focus {
    border-color: var(--ssgc-richblack);
    box-shadow: 0 0 0 1px var(--ssgc-black), 0 0 0 2px var(--ssgc-sand);
    outline: none;
}

.ssgc-form-group input[type="checkbox"]:checked,
.ssgc-checkbox input[type="checkbox"]:checked {
    background-color: var(--ssgc-orange);
    border-color: var(--ssgc-orange);
    box-shadow: none;
}

.ssgc-form-group input[type="checkbox"]:checked:hover,
.ssgc-checkbox input[type="checkbox"]:checked:hover {
    border-color: var(--ssgc-accentdark-mahogany);
    box-shadow: 0 0 0 1px var(--ssgc-accentdark-mahogany);
}

.ssgc-form-group input[type="checkbox"]:checked:focus,
.ssgc-checkbox input[type="checkbox"]:checked:focus {
    border-color: var(--ssgc-accentdark-mahogany);
    box-shadow: 0 0 0 1px var(--ssgc-accentdark-mahogany), 0 0 0 2px var(--ssgc-sand);
}

.ssgc-form-group input[type="checkbox"]:checked::after,
.ssgc-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

textarea.ssgc-form-control {
    height: auto !important;
}

/* Radio Button Container */
.ssgc-radio {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.ssgc-radio label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: normal;
    color: var(--ssgc-textprimaryonlight);
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.ssgc-radio input[type="radio"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Custom Radio Button Styling */
.ssgc-form-group input[type="radio"],
.ssgc-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--ssgc-gunmetal);
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 0;
    align-self: flex-start;
    padding: 0;
}

.ssgc-form-group input[type="radio"]:hover,
.ssgc-radio input[type="radio"]:hover {
    border-color: var(--ssgc-black);
    box-shadow: 0 0 0 1px var(--ssgc-black);
}

.ssgc-form-group input[type="radio"]:focus,
.ssgc-radio input[type="radio"]:focus {
    border-color: var(--ssgc-richblack);
    box-shadow: 0 0 0 1px var(--ssgc-black), 0 0 0 2px var(--ssgc-sand);
    outline: none;
}

.ssgc-form-group input[type="radio"]:checked,
.ssgc-radio input[type="radio"]:checked {
    background-color: white;
    border-color: var(--ssgc-orange);
    box-shadow: none;
}

.ssgc-form-group input[type="radio"]:checked:hover,
.ssgc-radio input[type="radio"]:checked:hover {
    border-color: var(--ssgc-accentdark-mahogany);
    box-shadow: 0 0 0 1px var(--ssgc-accentdark-mahogany);
}

.ssgc-form-group input[type="radio"]:checked:focus,
.ssgc-radio input[type="radio"]:checked:focus {
    border-color: var(--ssgc-accentdark-mahogany);
    box-shadow: 0 0 0 1px var(--ssgc-accentdark-mahogany), 0 0 0 2px var(--ssgc-sand);
}

.ssgc-form-group input[type="radio"]:checked::after,
.ssgc-radio input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--ssgc-orange);
    transform: translate(-50%, -50%);
}

.ssgc-form-group input[type="radio"]:checked:hover::after,
.ssgc-radio input[type="radio"]:checked:hover::after {
    background-color: var(--ssgc-accentdark-mahogany);
}

/* Button-Style Radio Button Group */
.ssgc-radio-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.ssgc-radio-button-group .ssgc-radio-button {
    position: relative;
    display: inline-block;
}

.ssgc-radio-button-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.ssgc-radio-button-group label {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    border: 1px none var(--ssgc-orange);
    box-shadow: inset 0 0 0 1px var(--ssgc-orange);
    color: var(--ssgc-orange);
    background-color: rgba(var(--ssgc-black-rgb), 0);
    border-radius: 2px;
    transition: box-shadow .2s, background-color .4s, color .4s, transform .2s;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    user-select: none;
}

.ssgc-radio-button-group label:hover {
    box-shadow: inset 0 0 0 2px var(--ssgc-orange);
    color: var(--ssgc-orange);
    background-color: rgba(var(--ssgc-orange-rgb), 0.13);
}

.ssgc-radio-button-group input[type="radio"]:focus + label {
    box-shadow: inset 0 0 0 1px var(--ssgc-orange), 0 0 0 2px var(--ssgc-sand);
    outline: none;
}

.ssgc-radio-button-group input[type="radio"]:checked + label {
    background-color: var(--ssgc-orange);
    color: var(--ssgc-white);
    box-shadow: 0 3px 0 0 var(--ssgc-accentdark-mahogany);
    transform: translate(0, -3px);
}

.ssgc-radio-button-group input[type="radio"]:checked + label:hover {
    background-color: var(--ssgc-orange);
    box-shadow: 0 3px 0 0 var(--ssgc-accentdark-mahogany);
    color: var(--ssgc-white);
}

.ssgc-radio-button-group input[type="radio"]:checked:focus + label {
    box-shadow: 0 3px 0 0 var(--ssgc-accentdark-mahogany), 0 0 0 2px var(--ssgc-sand);
}

.ssgc-radio-button-group input[type="radio"]:checked:active + label,
.ssgc-radio-button-group input[type="radio"]:checked + label:active {
    box-shadow: 0 2px 0 0 var(--ssgc-accentdark-mahogany);
    transform: translate(0, -2px);
}

.ssgc-radio-button-group input[type="radio"]:disabled + label {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.ssgc-radio-button-group input[type="radio"]:disabled + label:hover {
    box-shadow: inset 0 0 0 1px var(--ssgc-orange);
    background-color: rgba(var(--ssgc-black-rgb), 0);
    color: var(--ssgc-orange);
    transform: none;
}

/* ==========================================================================
   SELECT2 CUSTOM STYLES
   ========================================================================== */

/* Custom Select2 styles to match .ssgc-form-control */
.select2-container--default .select2-selection--single {
    border: 1px solid var(--ssgc-richblack) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single:focus {
    box-shadow: 0 0 0 1px black, 0 0 0 2px var(--ssgc-sand) !important;
    border-color: var(--ssgc-richblack) !important;
}

/* ==========================================================================
   HEADING STYLES
   ========================================================================== */

.ssgc-display-1,
.ssgc-display-2,
.ssgc-h1,
.ssgc-h2,
.ssgc-h3,
.ssgc-h4,
.ssgc-h5,
.ssgc-h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.2;
    color: var(--ssgc-textprimaryonlight) !important;
}

/* Display Headings - For large page titles and hero sections */
.ssgc-display-1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 3.5rem;
    letter-spacing: -0.02em;
    color: var(--ssgc-textprimaryonlight) !important;
}

.ssgc-display-2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 3rem;
    letter-spacing: -0.02em;
    color: var(--ssgc-textprimaryonlight) !important;
}

.ssgc-h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 2.5rem;
    letter-spacing: -0.02em;
    color: var(--ssgc-textprimaryonlight) !important;
}

.ssgc-h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 2.25rem;
    letter-spacing: -0.02em;
    color: var(--ssgc-textprimaryonlight) !important;
}

.ssgc-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2rem;
    letter-spacing: -0.01em;
    color: var(--ssgc-textprimaryonlight) !important;
}

.ssgc-h4 {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.875rem;
    letter-spacing: -0.02em;
    color: var(--ssgc-textprimaryonlight) !important;
    text-transform: none !important;
}

.ssgc-h5 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5rem;
    letter-spacing: -0.025em;
    color: var(--ssgc-richblack) !important;
}

.ssgc-h6 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--ssgc-textprimaryonlight) !important;
}

/* ==========================================================================
   TYPOGRAPHY STYLES - COMPLETE HIERARCHY
   ========================================================================== */

/* Overline Styles - Uppercase small text */
.ssgc-overline {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ssgc-textonlightsecondary) !important;
    margin: 0;
}

.ssgc-overline-accent {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ssgc-orange) !important;
    margin: 0;
}

/* Body Text Styles */
.ssgc-body-large {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75rem;
    color: var(--ssgc-textprimaryonlight) !important;
    margin: 0;
}

.ssgc-body-medium {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: var(--ssgc-textonlightsecondary) !important;
    margin: 0;
}

.ssgc-body-small {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25rem;
    color: var(--ssgc-textonlightsecondary) !important;
    margin: 0;
}

/* Caption Style - Smallest text */
.ssgc-caption {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ssgc-textonlightsecondary) !important;
    margin: 0;
}

/* ==========================================================================
   TYPOGRAPHY STYLES - DARK BACKGROUND VARIANTS
   ========================================================================== */

/* Display Headings on Dark Background */
.ssgc-display-1-dark {
    font-size: 3rem;
    font-weight: 700;
    line-height: 3.5rem;
    letter-spacing: -0.02em;
    color: var(--ssgc-textondarkprimary) !important;
}

.ssgc-display-2-dark {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 3rem;
    letter-spacing: -0.02em;
    color: var(--ssgc-textondarkprimary) !important;
}

/* Headings on Dark Background */
.ssgc-h1-dark,
.ssgc-h2-dark,
.ssgc-h3-dark,
.ssgc-h4-dark,
.ssgc-h5-dark,
.ssgc-h6-dark {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.2;
    color: var(--ssgc-textondarkprimary) !important;
}

.ssgc-h1-dark {
    font-size: 2rem;
    font-weight: 700;
    line-height: 2.5rem;
    letter-spacing: -0.02em;
    color: var(--ssgc-textondarkprimary) !important;
}

.ssgc-h2-dark {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 2.25rem;
    letter-spacing: -0.02em;
    color: var(--ssgc-textondarkprimary) !important;
}

.ssgc-h3-dark {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2rem;
    letter-spacing: -0.01em;
    color: var(--ssgc-textondarkprimary) !important;
}

.ssgc-h4-dark {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.875rem;
    letter-spacing: -0.02em;
    color: var(--ssgc-textondarkprimary) !important;
    text-transform: none !important;
}

.ssgc-h5-dark {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5rem;
    letter-spacing: -0.025em;
    color: var(--ssgc-textondarkprimary) !important;
}

.ssgc-h6-dark {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--ssgc-textondarkprimary) !important;
}

/* Overline on Dark Background */
.ssgc-overline-dark {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ssgc-textondarksecondary) !important;
    margin: 0;
}

.ssgc-overline-accent-dark {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ssgc-sand) !important;
    margin: 0;
}

/* Body Text on Dark Background */
.ssgc-body-large-dark {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75rem;
    color: var(--ssgc-textondarkprimary) !important;
    margin: 0;
}

.ssgc-body-medium-dark {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
    color: var(--ssgc-textondarksecondary) !important;
    margin: 0;
}

.ssgc-body-small-dark {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25rem;
    color: var(--ssgc-textondarksecondary) !important;
    margin: 0;
}

/* Caption on Dark Background */
.ssgc-caption-dark {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--ssgc-textondarksecondary) !important;
    margin: 0;
}

/* ==========================================================================
   TEXT COLOR UTILITY CLASSES
   ========================================================================== */

/* Text color utilities for light backgrounds - can be combined with typography classes */
.ssgc-text-primary {
    color: var(--ssgc-textprimaryonlight) !important;
}

.ssgc-text-secondary {
    color: var(--ssgc-textonlightsecondary) !important;
}

.ssgc-text-tertiary {
    color: var(--ssgc-textonlighttertiary) !important;
}

.ssgc-text-accent {
    color: var(--ssgc-orange) !important;
}

/* Text color utilities for dark backgrounds - can be combined with typography classes */
.ssgc-text-primary-dark {
    color: var(--ssgc-textondarkprimary) !important;
}

.ssgc-text-secondary-dark {
    color: var(--ssgc-textondarksecondary) !important;
}

.ssgc-text-tertiary-dark {
    color: var(--ssgc-textondarktertiary) !important;
}

.ssgc-text-accent-dark {
    color: var(--ssgc-sand) !important;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Utility class for negative vertical padding */
.ssgc-negative-vertical-padding-sm {
    margin-top: -10px !important;
    margin-bottom: -10px !important;
}

/* ==========================================================================
   MODAL STYLES
   ========================================================================== */

.ssgc-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ssgc-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.ssgc-modal {
    background: var(--ssgc-bglight1-white-smoke);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 80vh;
}

.ssgc-modal-backdrop.show .ssgc-modal {
    transform: scale(1);
}

.ssgc-modal-header {
    padding: 1.5rem;
    border-bottom: none;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #e9ecef;
}

.ssgc-modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ssgc-textprimaryonlight);
    line-height: 2rem;
    letter-spacing: -0.05em;
}

.ssgc-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ssgc-textonlightsecondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 2px;
    transition: color 0.2s ease, background-color 0.2s ease;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ssgc-modal-close:hover {
    color: var(--ssgc-textprimaryonlight);
    background-color: rgba(0, 0, 0, 0.05);
}

.ssgc-modal-body {
    padding: 1.5rem;
    color: var(--ssgc-textprimaryonlight);
    overflow-y: auto;
    flex: 1;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--ssgc-grey) transparent;
}

.ssgc-modal-footer {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    border-top: 1px solid #e9ecef;
}

/* Modal variants */
.ssgc-modal-danger .ssgc-modal-title {
    color: var(--ssgc-error-red);
}

.ssgc-modal-success .ssgc-modal-title {
    color: var(--ssgc-success-green);
}

/* Keep header/footer visible; body scrolls */
.ssgc-modal-header,
.ssgc-modal-footer {
    background-color: inherit;
    z-index: 1;
}

/* ==========================================================================
   CALLOUT STYLES
   ========================================================================== */

.ssgc-callout {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    border-left: 4px solid;
}

.ssgc-callout-warning {
    background: rgba(var(--ssgc-orange-rgb), 0.1);
    border-left-color: var(--ssgc-orange);
}

.ssgc-callout-info {
    background: rgba(var(--ssgc-gunmetal-rgb), 0.1);
    border-left-color: var(--ssgc-gunmetal);
}

.ssgc-callout-success {
    background: rgba(var(--ssgc-success-green-rgb), 0.1);
    border-left-color: var(--ssgc-success-green);
}

.ssgc-callout-danger {
    background: rgba(var(--ssgc-error-red-rgb), 0.1);
    border-left-color: var(--ssgc-error-red);
}

.ssgc-callout-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.75rem;
    letter-spacing: -0.025em;
}

.ssgc-callout-warning .ssgc-callout-title {
    color: var(--ssgc-orange);
}

.ssgc-callout-info .ssgc-callout-title {
    color: var(--ssgc-gunmetal);
}

.ssgc-callout-success .ssgc-callout-title {
    color: var(--ssgc-success-green);
}

.ssgc-callout-danger .ssgc-callout-title {
    color: var(--ssgc-error-red);
}

.ssgc-callout-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ssgc-textonlightsecondary);
}

/* ==========================================================================
   LAYOUT UTILITY CLASSES
   ========================================================================== */

.ssgc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ssgc-mb-1 {
    margin-bottom: 1rem;
}

.ssgc-mb-1-5 {
    margin-bottom: 1.5rem;
}

.ssgc-modal-wide {
    max-width: 700px;
}

/* ==========================================================================
   BADGE & TAG STYLES
   ========================================================================== */

.ssgc-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ssgc-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Color-based Badge Variations */
.ssgc-badge-primary {
    background-color: rgba(var(--ssgc-orange-rgb), 0.15);
    color: var(--ssgc-orange);
}

.ssgc-badge-secondary {
    background-color: rgba(var(--ssgc-gunmetal-rgb), 0.15);
    color: var(--ssgc-gunmetal);
}

.ssgc-badge-success {
    background-color: rgba(var(--ssgc-success-green-rgb), 0.15);
    color: var(--ssgc-success-green);
}

.ssgc-badge-error {
    background-color: rgba(var(--ssgc-error-red-rgb), 0.15);
    color: var(--ssgc-error-red);
}

.ssgc-badge-light {
    background-color: rgba(var(--ssgc-textonlighttertiary-rgb), 0.15);
    color: var(--ssgc-textonlighttertiary);
}

/* Additional Color Variations */
.ssgc-badge-blue {
    background-color: rgba(var(--ssgc-blue-rgb), 0.15);
    color: rgb(var(--ssgc-blue-rgb));
}

.ssgc-badge-purple {
    background-color: rgba(var(--ssgc-purple-rgb), 0.15);
    color: rgb(var(--ssgc-purple-rgb));
}

.ssgc-badge-yellow {
    background-color: rgba(var(--ssgc-yellow-rgb), 0.15);
    color: rgb(var(--ssgc-yellow-rgb));
}

.ssgc-badge-pink {
    background-color: rgba(var(--ssgc-pink-rgb), 0.15);
    color: rgb(var(--ssgc-pink-rgb));
}

.ssgc-badge-indigo {
    background-color: rgba(var(--ssgc-indigo-rgb), 0.15);
    color: rgb(var(--ssgc-indigo-rgb));
}

.ssgc-badge-teal {
    background-color: rgba(var(--ssgc-teal-rgb), 0.15);
    color: rgb(var(--ssgc-teal-rgb));
}

.ssgc-badge-gray {
    background-color: rgba(var(--ssgc-gray-rgb), 0.15);
    color: rgb(var(--ssgc-gray-rgb));
}

/* Tag Styles */
.ssgc-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 4px;
    border: 1px solid;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ssgc-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ssgc-tag-removable {
    padding-right: 0.5rem;
}

.ssgc-tag-remove {
    margin-left: 0.5rem;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.125rem;
    border-radius: 2px;
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.ssgc-tag-remove:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Tag Color Variations */
.ssgc-tag-primary {
    background-color: rgba(var(--ssgc-orange-rgb), 0.1);
    border-color: rgba(var(--ssgc-orange-rgb), 0.3);
    color: var(--ssgc-orange);
}

.ssgc-tag-secondary {
    background-color: rgba(var(--ssgc-gunmetal-rgb), 0.1);
    border-color: rgba(var(--ssgc-gunmetal-rgb), 0.3);
    color: var(--ssgc-gunmetal);
}

.ssgc-tag-success {
    background-color: rgba(var(--ssgc-success-green-rgb), 0.1);
    border-color: rgba(var(--ssgc-success-green-rgb), 0.3);
    color: var(--ssgc-success-green);
}

.ssgc-tag-error {
    background-color: rgba(var(--ssgc-error-red-rgb), 0.1);
    border-color: rgba(var(--ssgc-error-red-rgb), 0.3);
    color: var(--ssgc-error-red);
}

.ssgc-tag-light {
    background-color: rgba(var(--ssgc-textonlighttertiary-rgb), 0.1);
    border-color: rgba(var(--ssgc-textonlighttertiary-rgb), 0.3);
    color: var(--ssgc-textonlighttertiary);
}

.ssgc-tag-blue {
    background-color: rgba(var(--ssgc-blue-rgb), 0.1);
    border-color: rgba(var(--ssgc-blue-rgb), 0.3);
    color: rgb(var(--ssgc-blue-rgb));
}

.ssgc-tag-purple {
    background-color: rgba(var(--ssgc-purple-rgb), 0.1);
    border-color: rgba(var(--ssgc-purple-rgb), 0.3);
    color: rgb(var(--ssgc-purple-rgb));
}

.ssgc-tag-yellow {
    background-color: rgba(var(--ssgc-yellow-rgb), 0.1);
    border-color: rgba(var(--ssgc-yellow-rgb), 0.3);
    color: rgb(var(--ssgc-yellow-rgb));
}

.ssgc-tag-pink {
    background-color: rgba(var(--ssgc-pink-rgb), 0.1);
    border-color: rgba(var(--ssgc-pink-rgb), 0.3);
    color: rgb(var(--ssgc-pink-rgb));
}

.ssgc-tag-indigo {
    background-color: rgba(var(--ssgc-indigo-rgb), 0.1);
    border-color: rgba(var(--ssgc-indigo-rgb), 0.3);
    color: rgb(var(--ssgc-indigo-rgb));
}

.ssgc-tag-teal {
    background-color: rgba(var(--ssgc-teal-rgb), 0.1);
    border-color: rgba(var(--ssgc-teal-rgb), 0.3);
    color: rgb(var(--ssgc-teal-rgb));
}

.ssgc-tag-gray {
    background-color: rgba(var(--ssgc-gray-rgb), 0.1);
    border-color: rgba(var(--ssgc-gray-rgb), 0.3);
    color: rgb(var(--ssgc-gray-rgb));
}

/* Size Variations */
.ssgc-badge-sm {
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
}

.ssgc-badge-lg {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

.ssgc-tag-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.ssgc-tag-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */

/* Info Button */
.ssgc-info-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--ssgc-orange);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.ssgc-info-button:hover {
    background: var(--ssgc-accentdark-mahogany);
    transform: scale(1.1);
}

/* ==========================================================================
   DATA DISPLAY COMPONENTS
   ========================================================================== */

/* Stat Card - For displaying key-value pairs in cards */
.ssgc-stat-card {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ssgc-stat-card-label {
    font-size: 0.8rem;
    color: var(--ssgc-textonlighttertiary);
    margin-bottom: 0.25rem;
}

.ssgc-stat-card-value {
    font-weight: 600;
    color: var(--ssgc-textprimaryonlight);
}

/* Info Row - For displaying label-value pairs in rows */
.ssgc-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.ssgc-info-row:last-child {
    margin-bottom: 0;
}

.ssgc-info-row-label {
    color: var(--ssgc-textonlightsecondary);
}

.ssgc-info-row-value {
    color: var(--ssgc-textprimaryonlight);
    font-weight: 600;
}

/* Data Grid - For displaying stats in a grid layout */
.ssgc-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ssgc-data-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* Content Card - For displaying content in bordered containers */
.ssgc-content-card {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    color: var(--ssgc-textonlightsecondary);
    font-size: 0.9rem;
}

/* Section Container - For grouping related content */
.ssgc-section {
    margin-bottom: 1.5rem;
}

.ssgc-section:last-child {
    margin-bottom: 0;
}

.ssgc-section-title {
    font-weight: 600;
    color: var(--ssgc-textprimaryonlight);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* Status Indicators */
.ssgc-status-success {
    color: var(--ssgc-success-green);
    font-weight: 600;
}

.ssgc-status-warning {
    color: var(--ssgc-error-red);
    font-weight: 600;
}

.ssgc-status-info {
    color: var(--ssgc-textprimaryonlight);
    font-weight: 600;
}

/* ==========================================================================
   TABLE STYLES
   ========================================================================== */

.ssgc-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ssgc-table thead {
    background-color: var(--ssgc-bglight2-alpine);
}

.ssgc-table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ssgc-textprimaryonlight);
    text-transform: capitalize;
    letter-spacing: -0.01em;
    border-bottom: 2px solid #e9ecef;
}

.ssgc-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.ssgc-table tbody tr:last-child {
    border-bottom: none;
}

.ssgc-table tbody tr:hover {
    background-color: var(--ssgc-bglight2-alpine);
}

.ssgc-table tbody tr.ssgc-table-row-striped {
    background-color: var(--ssgc-bglight1-white-smoke);
}

.ssgc-table tbody tr.ssgc-table-row-striped:hover {
    background-color: var(--ssgc-bglight2-alpine);
}

.ssgc-table tbody td {
    padding: 0.75rem 1rem;
    color: var(--ssgc-textprimaryonlight);
    vertical-align: top;
}

.ssgc-table tbody td:first-child {
    font-weight: 500;
    color: var(--ssgc-textonlightsecondary);
}

.ssgc-table tbody td:last-child {
    font-weight: 600;
    color: var(--ssgc-textprimaryonlight);
}

/* Compact table variant */
.ssgc-table.ssgc-table-compact thead th,
.ssgc-table.ssgc-table-compact tbody td {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Bordered table variant */
.ssgc-table.ssgc-table-bordered tbody td {
    border-right: 1px solid #e9ecef;
}

.ssgc-table.ssgc-table-bordered tbody td:last-child {
    border-right: none;
}

.ssgc-table.ssgc-table-bordered thead th {
    border-right: 1px solid #e9ecef;
}

.ssgc-table.ssgc-table-bordered thead th:last-child {
    border-right: none;
}

/* ==========================================================================
   TAB STYLES
   ========================================================================== */

.ssgc-tabs {
    display: flex;
    border-bottom: 1px solid var(--ssgc-bglight3-smoke);
    margin-bottom: 0;
    gap: 0;
    padding: 0 1.5rem;
}

.ssgc-tab {
    background: none;
    border: none;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ssgc-textonlightsecondary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.ssgc-tab-content-wrapper {
    padding: 1.25rem;
}

.ssgc-tab:hover {
    color: var(--ssgc-textprimaryonlight) !important;
    background-color: var(--ssgc-bglight2-alpine) !important;;
}

.ssgc-tab.active {
    color: var(--ssgc-orange)  !important;;
    border-bottom-color: var(--ssgc-orange)  !important;;
    font-weight: 600;
}

.ssgc-tab.active:hover {
    color: var(--ssgc-orange) !important;;
    background-color: var(--ssgc-bglight2-alpine)  !important;;
}

.ssgc-tab:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.ssgc-tab-content {
    display: none;
    color: var(--ssgc-textprimaryonlight);
}

.ssgc-tab-content.active {
    display: block;
}

.ssgc-tabs-container {
    width: 100%;
}

/* ==========================================================================
   SLIDER STYLES
   ========================================================================== */

.ssgc-slider-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.ssgc-slider-value {
    min-width: 3rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ssgc-textprimaryonlight);
    text-align: left;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.ssgc-slider-wrapper {
    flex: 1;
    position: relative;
}

.ssgc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--ssgc-bglight3-smoke);
    outline: none;
    cursor: pointer;
}

/* Webkit (Chrome, Safari, Edge) */
.ssgc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ssgc-orange);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--ssgc-gunmetal), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.ssgc-slider::-webkit-slider-thumb:hover {
    background: var(--ssgc-accentdark-mahogany);
    box-shadow: 0 0 0 1px var(--ssgc-black), 0 0 0 2px var(--ssgc-sand), 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.ssgc-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px var(--ssgc-black), 0 0 0 2px var(--ssgc-sand), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.ssgc-slider:active::-webkit-slider-thumb {
    transform: scale(1.15);
}

/* Firefox */
.ssgc-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ssgc-orange);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 0 1px var(--ssgc-gunmetal), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.ssgc-slider::-moz-range-thumb:hover {
    background: var(--ssgc-accentdark-mahogany);
    box-shadow: 0 0 0 1px var(--ssgc-black), 0 0 0 2px var(--ssgc-sand), 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.ssgc-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 1px var(--ssgc-black), 0 0 0 2px var(--ssgc-sand), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.ssgc-slider:active::-moz-range-thumb {
    transform: scale(1.15);
}

.ssgc-slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--ssgc-bglight3-smoke);
}

.ssgc-slider:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.ssgc-slider:disabled::-webkit-slider-thumb {
    cursor: not-allowed;
}

.ssgc-slider:disabled::-moz-range-thumb {
    cursor: not-allowed;
}

/* ==========================================================================
   SWITCH STYLES
   ========================================================================== */

/* Switch Container */
.ssgc-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    margin: 0;
    padding: 0;
}

/* Hide default checkbox */
.ssgc-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Switch Track */
.ssgc-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--ssgc-bglight3-smoke);
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
    border-radius: 13px;
    border: 1px solid var(--ssgc-gunmetal);
}

/* Switch Thumb */
.ssgc-switch-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--ssgc-gunmetal), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Switch - Checked State */
.ssgc-switch input[type="checkbox"]:checked + .ssgc-switch-slider {
    background-color: var(--ssgc-orange);
    border-color: var(--ssgc-orange);
}

.ssgc-switch input[type="checkbox"]:checked + .ssgc-switch-slider::before {
    transform: translateX(22px);
    box-shadow: 0 0 0 1px var(--ssgc-accentdark-mahogany), 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Switch - Hover State */
.ssgc-switch:hover .ssgc-switch-slider {
    box-shadow: 0 0 0 1px var(--ssgc-black);
}

.ssgc-switch:hover input[type="checkbox"]:checked + .ssgc-switch-slider {
    box-shadow: 0 0 0 1px var(--ssgc-black);
    background-color: var(--ssgc-orange);
}

/* Switch - Focus State */
.ssgc-switch input[type="checkbox"]:focus + .ssgc-switch-slider {
    box-shadow: 0 0 0 1px var(--ssgc-black), 0 0 0 2px var(--ssgc-sand);
    outline: none;
}

.ssgc-switch input[type="checkbox"]:focus:checked + .ssgc-switch-slider {
    box-shadow: 0 0 0 1px var(--ssgc-black), 0 0 0 2px var(--ssgc-sand);
}

/* Switch - Active State */
.ssgc-switch input[type="checkbox"]:active + .ssgc-switch-slider::before {
    transform: translateX(22px) scale(1.1);
}

.ssgc-switch input[type="checkbox"]:not(:checked):active + .ssgc-switch-slider::before {
    transform: scale(1.1);
}

/* Switch - Disabled State */
.ssgc-switch input[type="checkbox"]:disabled + .ssgc-switch-slider {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.ssgc-switch input[type="checkbox"]:disabled + .ssgc-switch-slider::before {
    cursor: not-allowed;
}

/* Switch with Label */
.ssgc-switch-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.ssgc-switch-group label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: normal;
    color: var(--ssgc-textprimaryonlight);
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    user-select: none;
}

.ssgc-switch-group .ssgc-switch {
    flex-shrink: 0;
}

/* Switch Sizes */
.ssgc-switch-sm {
    width: 40px;
    height: 22px;
}

.ssgc-switch-sm .ssgc-switch-slider::before {
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
}

.ssgc-switch-sm input[type="checkbox"]:checked + .ssgc-switch-slider::before {
    transform: translateX(18px);
}

.ssgc-switch-lg {
    width: 56px;
    height: 30px;
}

.ssgc-switch-lg .ssgc-switch-slider::before {
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
}

.ssgc-switch-lg input[type="checkbox"]:checked + .ssgc-switch-slider::before {
    transform: translateX(26px);
}

.ssgc-no-margin {
    margin: 0 !important;
}

.ssgc-row-space-between{
    display: flex;
    justify-content: space-between;
}