/* Settings Summary Styles */
.settings-summary {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.settings-summary h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.summary-content {
    display: grid;
    grid-template-columns: 3rem 24rem auto;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.summary-content .label {
    font-weight: 600;
    color: black;
    font-size: 0.9rem;
}

.summary-content .value {
    color: #252525;
    font-size: 0.9rem;
}

/* Edit button styling in summary */
.edit-setting-btn {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0.25rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    width: 3rem !important;
    height: 2rem !important;
    min-width: 3rem !important;
    min-height: 2rem !important;
    margin: 0 !important;
    justify-self: start !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.edit-setting-btn:hover {
    background-color: #2c5282 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.edit-setting-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.edit-setting-btn:focus {
    outline: 2px solid #3182ce !important;
    outline-offset: 2px !important;
}

@media (max-width: 768px) {
    .summary-content {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .summary-content .label {
        font-weight: 600;
        color: black;
        margin-bottom: 0.25rem;
    }

    .summary-content .value {
        color: #252525;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

    /* Make edit buttons larger on mobile for better touch targets */
    /* Edit button appears first on mobile (from DOM order) */
    .edit-setting-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
        min-width: 4.5rem !important;
        justify-self: start !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

:root {
    --checkbox-size: 1em;
    --checkbox-border: 2px;
    --checkbox-border-color-light: black;
    --checkbox-border-color-dark: white;
    --checkbox-fill-color-light: black;
    --checkbox-fill-color-dark: white;
    --checkbox-background-light: white;
    --checkbox-background-dark: #222;
    --primary-color: #486284;
  }

   /* Welcome page specific styles - these can be added to styles.css later */
   .welcome-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    margin-top: 5%;
}

.welcome-header {
    margin-bottom: 40px;
}

.welcome-header h1 {
    color: var(--primary-color);
    font-size: 3.5em;
    margin-bottom: 20px;
}

.welcome-header p {
    font-size: 1.2em;
    color: #535353;
    line-height: 1.6;
    margin-left: 200px;
    margin-right: 200px;
}


/* Step Progress Indicator */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 40px 0;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Wrap number + title without layout shift */
    padding: 8px 12px;
    border-radius: 8px;
    border: 3px solid transparent;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.step-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step.active .step-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px; /* Larger text for current step */
    transition: font-size 0.3s ease;
}

/* Rounded border highlight for the active/current step (number + title) */
.step.active {
    border-color: var(--primary-color);
}

.step.completed .step-number {
    background-color: #27ae60;
    color: white;
    position: relative;
}

.step.completed .step-number::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.step.completed .step-number {
    font-size: 0; /* Hide the number when completed */
}

.step.completed .step-title {
    color: #27ae60;
    font-size: 14px; /* Normal size when completed */
}

.step-connector {
    width: 80px;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 20px;
    margin-bottom: 25px;
}

.step.active ~ .step-connector,
.step.completed ~ .step-connector {
    background-color: var(--primary-color);
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step Navigation */
.step-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    gap: 10px;
}

.right-buttons {
    display: flex;
    gap: 10px;
}

.toggle-help-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}


.toggle-help-btn:hover {
    background-color: #3a5068;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-help-btn:active {
    transform: translateY(0);
}

.nav-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 0.5rem;
    border-radius: 2rem;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    align-items: right;
    transition: all 0.3s ease;
    min-width: 100px;
}

.nav-btn:hover {
    background-color: #3a5068;
    transform: translateY(-1px);
}

.nav-btn:disabled {
    background-color: #ccc;
    color: #000000;
    cursor: not-allowed;
    transform: none;
}

.prev-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    justify-self: start;
}

.prev-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.clear-btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    justify-self: center;
}

.clear-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.next-btn {
    justify-self: end;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 300;
}

/* Steps container styling */
.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: nowrap;
}

.step-box {
    background-color: white;
    border: 2px solid black;
    border-radius: 5px;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
}

.step-box h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.step-box p {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    max-width: 90%;
}

.step-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.step-arrow {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 0 3px rgba(72, 98, 132, 0.3));
}
  
body {
    font-family: sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.2;
}

.container {
    background-color: #ffffff;
    padding: 3rem 3rem;
    border-radius: 0.75rem;
    max-width: 70rem;
    margin: 0 auto;
}

.required {
    color: #e53e3e;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Text utility classes */
.label-text {
	font-size: 1.1667rem; /* 14pt -> ~18.67px -> 1.1667rem */
}

.big-text {
	color: #000;
	font-size: 0.9167rem; /* 11pt -> ~14.67px -> 0.9167rem */
    font-weight: 500;
    opacity: inherit;
}

.small-text {
	color: #000;
	font-size: 0.75rem; /* 9pt -> 12px -> 0.75rem */
    font-weight: 500;
    opacity: inherit;
}

.red-text {
	color: #e53e3e; /* match .required color */
	font-size: 0.75rem; /* 9pt */
    font-weight: 600;
    opacity: inherit;
}

/* Helper text layout inside label-text */
.label-text .big-text {
	display: block;
	margin-top: 0.25rem;
}


/* Stack helper lines one below the other inside label-text */
.label-text .small-text,
.label-text .red-text {
	display: block;
	margin: 0.125rem 0 0;
	line-height: 1.2;
}


h4 {
    font-size: 1.125rem;
    color: #000;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

h5 {
    font-size: 1rem;
    color: #000;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

h6 {
    font-size: 0.875rem;
    color: #000;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}


ol, ul {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
    color: #000;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.back-button-container {
    text-align: left;
    margin-bottom: 20px;
}

.back-button {
    color: #000;
    text-decoration: none;
    font-size: 1em;
}

/* Section styling - Much more spacing */
.section {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1rem;
    padding: 1.5rem 3rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

/* Form elements */
label {
    margin:0;
    padding: 0;
    font-size: 0.9375rem;
    color: black;
    font-weight: 500;
}

/* Input styling */
input[type="text"], 
input[type="number"], 
input[type="date"],
input[type="url"],
select {
    padding: 0.5rem 0.75rem;
    width: 100%;
    max-width: 21.875rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.9375rem;
    font-family: inherit;
    background-color: #f2f4f7;
    transition: all 0.2s ease;
    color: #2d3748;
}

input[type="text"]:focus, 
input[type="number"]:focus, 
input[type="url"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}


/* Toggle Switch styling - replacing checkboxes */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 3.5rem;
    height: 2rem;
    background-color: #cbd5e0;
    border-radius: 1rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #a0aec0;
    outline: none;
    margin: 0;
}

input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(72, 98, 132, 0.3);
}

input[type="checkbox"]:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Switch thumb (slider) */
input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: white;
    top: 0.125rem;
    left: 0.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #e2e8f0;
}

/* Move thumb to right when checked */
input[type="checkbox"]:checked::before {
    left: calc(100% - 1.625rem);
}

/* Focus state for accessibility */
input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.3);
}



/* Radio button styling (keeping original) */
input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    cursor: pointer;
    accent-color: #3182ce;
}

/* Add thicker appearance for two-column checkboxes - now switches */
.two-column-layout input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 3.5rem;
    height: 2rem;
    background-color: #cbd5e0;
    border-radius: 1rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #a0aec0;
    outline: none;
    box-shadow: none;
    margin: 0;
}

.two-column-layout input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: none;
    box-shadow: 0 2px 8px rgba(72, 98, 132, 0.3);
}

/* Style for indeterminate checkbox state (AT on Demand) - now a special switch state */
.two-column-layout input[type="checkbox"]:indeterminate {
    background-color: #a0aec0;
    background-image: none;
}

/* Switch thumb (slider) for two-column layout */
.two-column-layout input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: white;
    top: 0.125rem;
    left: 0.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Move thumb to right when checked for two-column layout */
.two-column-layout input[type="checkbox"]:checked::before {
    left: calc(100% - 1.625rem);
}

/* Focus state for accessibility for two-column layout */
.two-column-layout input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.3);
}



/* Small text styling */
small {
    display: block;
    font-size: 0.8125rem;
    color: black;
    margin-top: 0.5rem;
    line-height: 1.2;
    font-weight: 400;
    max-width: 100%;

}

/* Small text in two-column layout should use 100% width inside label area */
.two-column-layout .small-text {
    width: 100%;
    max-width: none;
    position: relative;
}

/* Keep "Required" inline next to the title label */
.two-column-layout .label-text > small.required,
.two-column-layout .label-text > .required {
	display: inline-block;
	width: auto;
	max-width: none;
	margin-left: 0.5rem;
	position: static;
}


/* Two-column layout */
.two-column-layout {
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.two-column-layout h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #1a202c;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.two-column-layout label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    gap: 1.5rem;
    font-size: 0.9375rem;
    padding: 0.75rem 0;
}

.two-column-layout label:last-child {
    border-bottom: none;
}

.two-column-layout label .label-text {
    flex: 1;
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 600;
}

.two-column-layout label .control-container {
    flex: 0 0 auto;
    min-width: 30%;
    width: 30%;
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Checkbox label styling */
.two-column-layout label:has(input[type="checkbox"]) {
    align-items: flex-start;
    gap: 1rem;
}

.two-column-layout label:has(input[type="checkbox"]) .control-container {
    flex: 0 0 auto;
    min-width: 30%;
    width: 30%;
    margin-top: 0.125rem;
    justify-content: flex-start;
}

.two-column-layout label:has(input[type="checkbox"]) .label-text {
    flex: 1;
    max-width: none;
}

/* Small text width for checkbox labels */
.two-column-layout label:has(input[type="checkbox"]) .small-text {
    width: 100%;
    max-width: none;
}

/* Input styling for two-column layout */
.two-column-layout input[type="text"], 
.two-column-layout input[type="number"], 
.two-column-layout input[type="date"],
.two-column-layout input[type="url"],
.two-column-layout select {
    max-width: 10rem;
    min-width: 10rem;
}


#customButtonsSection {
    padding-left: 1.875rem;
}

#errorMessages,
#successMessage {
    display: none;
}

.download-section-buttons {
    display: flex;
    justify-content: center;
    gap: 0.9375rem;
}

/* Dependent option styling */
.dependent-option {
    margin-left: 5%;
    padding: 1rem;
    margin-top: -1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1.25rem;
}

.dependent-option .label-text {
    margin-left: 0.5rem;
    max-width: 50%;
    font-size: 0.875rem;
}

/* Ensure disabled state cascades to all child elements */
.dependent-option[style*="opacity: 0.6"] .label-text,
.dependent-option[style*="opacity: 0.6"] .label-text * {
    opacity: 0.6;
}

.dependent-option label {
    margin-bottom: 0.75rem;
}

/* Validation error styling - Red background */
input.error, 
select.error {
    border-color: #e53e3e !important;
    background-color: #fed7d7 !important;
    box-shadow: 0 0 0 0.1875rem rgba(229, 62, 62, 0.1) !important;
}

/* Disabled options styling - Grayed out */
option:disabled {
    color: #a0aec0;
    font-style: italic;
}

/* Disabled form elements styling - Grayed out */
select:disabled,
input:disabled {
    background-color: #f7fafc !important;
    color: #a0aec0 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

/* Button styling */
button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.3125rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 2.25rem;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary button styling - Blue */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
    border-radius: 2rem;
}

.btn-primary:hover {
    background-color: #2c5282;
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
}

/* File input button styling */
.file-input-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
    border-radius: 2rem;
}

.file-input-btn:hover {
    background-color: #2c5282;
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
}

.file-input-btn:active {
    transform: translateY(0);
    box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
}

/* Secondary button styling - Gray */
.btn-secondary,
.test-url-btn {
    margin-top: 0.3125rem;
    background-color: #fff;
    color:#000;
    border: 2px solid #000;
    border-radius: 2rem;
}

.btn-secondary:hover,
.test-url-btn:hover {
    background-color: #cbd5e0;
    color: #2d3748;
}

/* File input styling */
input[type="file"] {
    display: none;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.file-name-display {
    font-size: 0.875rem;
    color: #718096;
    font-style: italic;
}

#organizationNameError,
#siteIdError {
    display: none;
    color: #e53e3e;
}

#uploadLabel {
    font-weight: 400;
    color: #000;
}

/* AT-on-Demand feature temporarily commented out
#atOnDemandWarning */
#checkForUpdatesWarning {
    color: #e53e3e;
}

#visibility-full,
#location-full
{
    display: none;
}

/* Download button styling */
#download.download-btn,
button#download {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-self: end;
}

#download.download-btn:hover:not(:disabled),
button#download:hover:not(:disabled) {
    background-color: #3a5068;
    transform: translateY(-1px);
}

#download.download-btn:disabled,
button#download:disabled {
    background-color: #ccc;
    color: #000000;
    cursor: not-allowed;
    transform: none;
}


#checkErrors {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-width: 12.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(49, 130, 206, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    background-color: #008145;
    color: white;
    border: none;
    cursor: pointer;
}

#checkErrors:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.5625rem rgba(72, 187, 120, 0.6);
}

.error-messages {
    background-color: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 0.5rem;
    padding: 1rem;
    color: #742a2a;
    max-width: 100%;
    margin-top: 0.75rem;
}

.error-messages h4 {
    margin: 0 0 0.75rem 0;
    color: #742a2a;
    font-size: 1rem;
}

.error-messages ul {
    margin: 0;
    padding-left: 1rem;
}

.error-messages li {
    margin-bottom: 0.375rem;
    line-height: 1.2;
}

.success-message {
    background-color: #c6f6d5;
    border: 1px solid #68d391;
    border-radius: 0.5rem;
    padding: 1rem;
    color: #22543d;
    font-weight: 600;
    max-width: 100%;
    margin-top: 0.75rem;
}

/* Upload section styling - Light blue background */
.section:first-of-type {
    background-color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.section:first-of-type label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

/* Form group styling */
.form-group {
    margin-bottom: 1rem;
}

/* Predefined button sections */
.predefined-button {
    background-color: #fff;
    padding: 0.25rem 0.625rem;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

/* Highlight predefined button when its checkbox is checked */
.predefined-button {
    transition: border-color 0.2s ease;
}

.predefined-button:has(.checkbox-container input[type="checkbox"]:checked) {
    border-color: #28a745;
    border-width: 2px;
}

.button-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.position-selector {
    flex: 0 0 0.625rem;
}

.position-selector label {
    margin: 0;
    font-weight: 600;
}

.position-selector select {
    width: 100%;
    min-width: 4.375rem;
    max-width: 4.375rem;
}

.button-info {
    flex: 1;
}

.button-info h5 {
    margin: 0 0 0.125rem 0;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
}

.button-preview-container {
    position: relative;
    flex: 0 0 auto;
    margin: 0.5rem;
}

.control-button {
    background-color: #38a169 !important;
}

.action-button {
    background-color: rgb(0, 41, 87)  !important;
}

.url-button {
    background-color: rgb(0, 41, 87)  !important;
}

.button-config {
    padding: 0;
    margin-top: 1rem;
}

.config-display {
    background-color: #edf2f7;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.url-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.url-inputs label b {
    max-width: 9rem;
    min-width: 9rem;
    white-space: nowrap;
}

.url-inputs label {
    margin: 0;
    margin-bottom: 0;
    padding: 0; /* override two-column-layout label padding */
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-left: 0;
}

.url-inputs label:last-child {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.url-inputs input[type="text"],
.url-inputs input[type="url"] {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding: 0.5rem 0.625rem;
    border: none;
    background-color: #f2f4f7; /* light grey */
    border-radius: 0.25rem; /* less rounded */
}

.url-inputs select {
    width: 12rem; /* keep compact for position */
    max-width: none;
    margin-top: 0;
    padding: 0.25rem 0.5rem;
}

/* Remove focus ring/border for URL text inputs while maintaining accessibility */
.url-inputs input[type="text"]:focus,
.url-inputs input[type="url"]:focus {
    outline: none;
    box-shadow: none;
    background-color: #eef1f5;
}

.url-inputs label:last-child {
    margin-bottom: -0.1875rem;
}

/* Split layout for url-inputs */
.url-inputs-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.url-inputs-container .url-inputs {
    flex: 1 1 auto;
    min-width: 0;
}

.tooltip-preview {
    margin-left: 1rem;
    flex: 0 0 20rem; /* fixed width preview at right */
    max-width: 20rem;
    min-width: 20rem;
    display: none; /* Initially hidden, shown when button is checked */
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.tooltip-preview h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.75rem 0;
    text-align: left;
    width: 100%;
}


.tooltip-preview-box {
    background-color: black;
    color: white;
    padding: 0.5rem 0.125rem;
    width: 100%;
    min-width: 0;
    max-width: none;
    align-self: flex-start;
    margin-top: 0.5rem;
}

.tooltip-header {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
    color: #ffffff;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    text-align: center;
}

.tooltip-text {
    font-size: 1rem;
    line-height: 1.4;
    color: #ffffff;
    font-weight: 500;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: 2.5rem;
    text-align: center;
}

/* Dropdown sizing in extra button sections */
.extra-button select {
    width: 15rem;
    max-width: 15rem;
    min-width: 15rem;
}

.extra-button h5 {
    margin: 0 0 1rem 0;
    color: #1a202c;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.extra-button hr {
    border: none;
    height: 1px;
    background-color: #e2e8f0;
    margin: 1rem 0;
}

/* Button fields styling */
.button-fields {
    background-color: #edf2f7;
    padding: 1rem;
    border-radius: 0.625rem;
    border: 1px solid #cbd5e0;
    margin-top: 1rem;
}

.button-fields label {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.button-fields label > span:first-child {
    min-width: 7.5rem;
    font-weight: 600;
    color: #2d3748;
}

/* Input sizing in button fields */
.button-fields input[type="text"],
.button-fields input[type="url"],
.button-fields select {
    width: 15rem;
    max-width: 15rem;
    min-width: 15rem;
    padding: 0.5rem 0.625rem;
    border: none;
    background-color: #f2f4f7;
    border-radius: 0.25rem;
}

/* Button Preview Styling */
.button-preview {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.preview-button, 
.position-content .button-info {
    background-color: rgb(0, 41, 87);
    color: white;
    padding: 0.5rem 0.625rem;
    border: none;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
    min-width: 3.125rem;
    max-width: 5rem;
    min-height: 3.125rem;
    max-height: 3.125rem;
    font-weight: 500;
    flex-shrink: 0;
}

.preview-button:hover {
    background-color: #2c5282;
}

/* Morphic Bar Preview Styles */
.morphic-bar-preview {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
    overflow: visible;
}

.morphic-bar-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 0.3125rem;
    padding: 0.375rem;
    border: 1.5px solid #2c3e50;
    min-height: 3.5rem;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
}

.custom-buttons-container {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex: 0 0 auto;
    margin-right: 0.5rem;
    min-width: 0;
}

/* Ensure spacer provides visual separation */
.morphic-bar-container .spacer {
    width: 1px;
    height: 2.5rem;
    background-color: #e2e8f0;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

/* Custom scrollbar for morphic bar */
.morphic-bar-container::-webkit-scrollbar {
    height: 8px;
}

.morphic-bar-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.morphic-bar-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.morphic-bar-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar */
.morphic-bar-container {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Ensure default buttons don't shrink or wrap */
.morphic-bar-container .button-preview-container {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Morphic bar styling */
.morphic-bar-container .preview-button-group,
.morphic-bar-container .preview-button {
    margin: 0;
    flex-shrink: 0;
}

/* Button source information styling */
.button-sources {
    margin-top: 0.75rem;
    padding: 0.5rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.button-source-item {
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 0.1875rem;
}

.button-source-item:last-child {
    margin-bottom: 0;
}

.button-source-item.conflict {
    color: #e53e3e;
    font-weight: 600;
}

/* Empty state styling */
.custom-buttons-container:empty::before {
    content: "Your custom buttons will appear here";
    color: #a0aec0;
    font-style: italic;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
}




/* Tablet and smaller */
@media (max-width: 1024px) {
    .url-inputs-container {
        gap: 1rem;
    }
    
    .tooltip-preview {
        padding: 0.75rem;
    }
    
    .tooltip-preview-box {
        max-width: 100%;
    }
    
    .tooltip-header {
        font-size: 1rem;
    }
    
    .tooltip-text {
        font-size: 0.875rem;
        max-height: 2.25rem;
    }
}

/* Tablet and smaller */
@media (max-width: 900px) {
    .url-inputs-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tooltip-preview {
        order: -1; /* Move preview to top on smaller screens */
        padding: 0.75rem;
    }
    
    .tooltip-preview-box {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 1024px) {
    .steps-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        font-size: 2rem;
        font-weight: 900;
        margin: 0.5rem 0;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        filter: drop-shadow(0 0 3px rgba(72, 98, 132, 0.3));
    }
    
    .step-box {
        width: 80%;
        max-width: 300px;
        flex: none;
    }
    
    .container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .two-column-layout {
        padding: 1rem;
    }
    
    .two-column-layout label {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .two-column-layout label .label-text {
        max-width: 100%;
    }
    
    .two-column-layout label .control-container {
        min-width: auto;
        align-self: flex-start;
        width: 100%;
    }
    
    .custom-buttons-container {
        margin-right: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .url-inputs-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tooltip-preview {
        padding: 0.5rem;
        order: -1;
        width: 100%;
        align-items: center;
    }   
    
    .tooltip-preview h6 {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }
    
    .tooltip-preview-box {
        max-width: 100%;
        min-width: auto;
        width: 100%;
        padding: 0.75rem;
    }
    
    .tooltip-header {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .tooltip-text {
        font-size: 0.875rem;
        max-height: 2.125rem;
    }

    /* Improve input fields on mobile */
    .url-inputs {
        width: 100%;
    }

    .url-inputs label {
        margin-left: 0;
        margin-bottom: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .url-inputs label b {
        max-width: 100%;
        min-width: 100%;
        margin-bottom: 0.25rem;
    }

    .url-inputs input[type="text"],
    .url-inputs input[type="url"],
    .url-inputs select {
        width: 100%;
        max-width: none;
    }

    .url-inputs .url-input-wrapper {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .button-fields .url-input-wrapper input[type="url"],
    .url-inputs .url-input-wrapper input[type="url"] {
        width: 100%;
        max-width: none;
    }

    .test-url-btn,
    .view-url-btn {
        width: 100%;
        max-width: none;
        padding: 0.5rem;
        min-height: 2.5rem;
        font-size: 1rem;
    }

    .button-fields label {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-fields label > span:first-child {
        min-width: 100%;
        margin-bottom: 0.25rem;
    }

    .button-fields input[type="text"],
    .button-fields select {
        width: 100%;
        max-width: none;
        min-width: auto;
    }

    /* Responsive button styles */
    #download, #checkErrors {
        min-width: auto;
        width: 45%;
        padding: 0.625rem 1rem;
        font-size: 0.9375rem;
    }
    
    .download-section > div {
        flex-wrap: wrap;
        gap: 0.625rem;
    }
}

/*Smallest screen */
@media (max-width: 480px) {
    .url-inputs-container {
        gap: 0.5rem;
    }
    
    .tooltip-preview {
        padding: 0.5rem;
    }
    
    .tooltip-preview-box {
        padding: 0.5rem;
    }
    
    .tooltip-header {
        font-size: 0.9375rem;
    }
    
    .tooltip-text {
        font-size: 0.8125rem;
        max-height: 1.875rem;
    }
    
    .url-inputs input[type="text"],
    .url-inputs input[type="url"] {
        font-size: 1rem; /* Prevent zoom on iOS */
    }

    /* Additional mobile improvements */
    .predefined-button {
        padding: 0.625rem;
    }

    .button-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .button-info {
        width: 100%;
    }

    .button-preview-container {
        align-self: center;
        margin-top: 0.5rem;
    }

    .preview-button, 
    .position-content .button-info {
        min-width: 3.75rem;
        min-height: 3.75rem;
    }

    .test-url-btn,
    .view-url-btn {
        min-height: 2.75rem;
        font-weight: 600;
    }

    /* Smaller buttons for smallest screens */
    #download, #checkErrors {
        width: 100%;
        min-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .download-section > div {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Welcome page button container */
.button-container-welcome {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Focus styles for accessibility - Blue outline */
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

/* Conflict indicator styling */
.conflict-indicator {
    color: #e53e3e;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.25rem;
    background-color: #fed7d7;
    border: 1px solid #e53e3e;
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
}
/* Date input container styling */
.date-input-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left;
}

.date-input-container input[type="date"] {
    width: 10rem;
    max-width: 10rem;
    min-width: 10rem;
}

/* Date input element styling */
.date-input-container input[type="date"] {
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Bold text in date container */
.date-input-container b {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    display: block;
    margin-top: 0.375rem;
    line-height: 1.2;
}

/* Small text in date container */
.date-input-container small {
    font-size: 0.75rem;
    line-height: 1.2;   
    display: block;
    margin-top: 0.375rem;
    color: #718096;
}

/* Date input container styling */
.two-column-layout .date-input-container {
    position: relative;

}


/* Button fields styling */
.button-fields .url-input-wrapper,
.url-inputs .url-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.button-fields .url-input-wrapper input[type="url"],
.url-inputs .url-input-wrapper input[type="url"] {
    flex: 1;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
}

.test-url-btn {
    background-color: #edf2f7;
    color: black;
    border: 1px solid #a0aec0;
    padding: 0.25rem 0.5rem;
    min-height: 1.875rem;
    max-height: 1.875rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
    min-width: 4.5rem;
}

.test-url-btn:hover {
    background-color: #e2e8f0;
}

.view-url-btn {
    background-color: #edf2f7;
    color: black;
    border: 1px solid #a0aec0;
    padding: 0.25rem 0.5rem;
    min-height: 1.875rem;
    max-height: 1.875rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
    min-width: 4.5rem;
}

.view-url-btn:hover {
    background-color: #e2e8f0;
}

/* See more/see less links */
.see-more-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.see-more-link:hover {
    color: #2c5282;
    text-decoration: underline;
}

.see-more-link:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
    border-radius: 0.125rem;
}

/* Truncated descriptions */
.description-short,
.description-full {
    display: inline;
}

/* JSON property names */
.json-name {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.6875rem;
    font-weight: 500;
}

.json-name .label {
    color: #4a5568;
}

.json-name .property {
    color: #3182ce;
    font-weight: 600;
}

.preview-button span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;  
    max-width: 10ch;              
    line-height: 1.2;
    font-weight: 600;          
    align-items: center;
    text-align: center;
}

/* Override for application buttons - no truncation, expand to fit text */
#customApp1Preview span,
#customApp2Preview span,
#customApp3Preview span {
    display: block;
    -webkit-box-orient: initial;
    -webkit-line-clamp: initial;
    overflow: visible;
    text-overflow: initial;
    max-width: none;
    white-space: normal;
    word-break: normal;
    min-width: fit-content;
    width: auto;
}

/* Ensure application button containers can expand */
#customApp1Preview,
#customApp2Preview,
#customApp3Preview,
.application-button {
    min-width: fit-content;
    width: auto;
    max-width: none;
    padding: 0.5rem 0.75rem;
}

/* Override for cloned application buttons in MorphicBar preview */
.application-button span {
    display: block;
    -webkit-box-orient: initial;
    -webkit-line-clamp: initial;
    overflow: visible;
    text-overflow: initial;
    max-width: none;
    white-space: normal;
    word-break: normal;
    min-width: fit-content;
    width: auto;
}

#spacer {
    margin-right: 0.625rem;
}

/* Split button styling */
.preview-button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.button-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
    margin-bottom: -0.375rem;
}

.split-button-container {
    display: flex;
    gap: 1px;
}

.split-button {
    background-color: #008145;
    color: white;
    padding: 0 0.625rem;
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 1.875rem;
    min-height: 1.75rem;
    max-height: 1.75rem;
    font-weight: 600;
}

.normal-button {
    background-color: #008145;
    color: white;
    padding: 0 0.625rem;
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 1.875rem;
    min-height: 1.75rem;
    max-height: 1.75rem;
    font-weight: 600;
    margin-left: 0.3125rem;
}

.split-button.left {
    border-radius: 0.375rem 0 0 0.375rem;
    margin-left: 0.3125rem;
}

.split-button.right {
    border-radius: 0 0.375rem 0.375rem 0;
}

.split-button.middle {
    border-radius: 0;
}

.split-button:hover {
    background-color: #00B05C;
}

.button-container {
    background-color:white;
    padding: 0.625rem;
    padding-bottom: 0.1875rem;
    border: 2px solid #c5c5c5;
    border-radius: 1.25rem;
}

/* Predefined buttons grid (2x2) */
.predefined-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

/* Checkbox container for predefined buttons */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.checkbox-container input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    border: 2px solid #4a5568 !important;
    border-radius: 0.25rem !important;
    background-color: white !important;
    cursor: pointer;
    position: relative;
    margin: 0 !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: none !important;
    outline: none !important;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

.checkbox-container input[type="checkbox"]:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: none !important;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 1px;
    left: 2px;
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
}

.checkbox-container input[type="checkbox"]:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(72, 98, 132, 0.1);
}

.checkbox-container input[type="checkbox"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.checkbox-container label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    cursor: pointer;
}

/* Position selector container */
.position-selector-container {
    margin-top: 0rem;
    padding: 0.5rem 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.position-selector-container label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    min-width: 4rem;
}

.position-selector-container select {
    width: 5rem;
    max-width: 5rem;
    min-width: 5rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

/* Application buttons section */
.application-buttons-section {
    margin-bottom: 2rem;
}

.application-buttons-section > h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
}

.application-buttons-section > small {
    display: block;
    margin-bottom: 1rem;
    color: #323232;
    font-size: 0.875rem;
}

/* Add button container */
.add-button-container {
    margin: 1rem 0;
    text-align: center;
}

.add-app-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-app-btn:hover {
    background-color: #2c5282;
}

.add-app-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* URL buttons section (mirrors application buttons styles) */
.url-buttons-section {
    margin-bottom: 2rem;
}

.url-buttons-section > h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
}

.url-buttons-section > small {
    display: block;
    margin-bottom: 1rem;
    color: #323232;
    font-size: 0.875rem;
}

/* MorphicBar Preview Section */
.morphic-bar-preview-section {
    margin-bottom: 2rem;
}

.morphic-bar-preview-section > h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 600;
}

.morphic-bar-preview-section > small {
    display: block;
    margin-bottom: 1rem;
    color: #323232;
    font-size: 0.875rem;
}

/* Add URL button */
.add-url-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-url-btn:hover {
    background-color: #2c5282;
}

.add-url-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}


/* Responsive adjustments for predefined buttons grid */
@media (max-width: 768px) {
    .predefined-buttons-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .position-selector-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .position-selector-container label {
        min-width: auto;
    }
    
    .position-selector-container select {
        width: 100%;
        max-width: 8rem;
        min-width: auto;
    }
}

.no-buttons-message {
    width: 100%;
    padding: 0.625rem;
    font-size: 0.875rem;
    color: #718096;
    text-align: center;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.125rem;
}

/* Placeholder buttons styling */
.placeholder-buttons-container {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
    margin-right: 0.5rem;
}

.placeholder-button {
    background-color: transparent;
    color: #a0aec0;
    padding: 0.5rem 0.625rem;
    border: 2px dashed #a0aec0;
    border-radius: 0.625rem;
    font-size: 0.8125rem;
    font-family: inherit;
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: none;
    min-width: 3.125rem;
    max-width: 5rem;
    min-height: 3.125rem;
    max-height: 3.125rem;
    font-weight: 500;
    flex-shrink: 0;
    user-select: none;
}

.placeholder-button:hover {
    background-color: transparent;
    border-color: #a0aec0;
    color: #a0aec0;
    transform: none;
    box-shadow: none;
}

/* MorphicBar preview now shown on all screen sizes */

/* URL test status indicator */
.url-status-indicator {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    text-align: center;
    min-width: 3rem;
    color: #4a5568; /* default gray text */
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    visibility: hidden; /* Hide when empty to avoid confusion */
}

.url-status-indicator:not(:empty) {
    visibility: visible; /* Show when it has content */
}

.url-status-indicator.loading {
    color: #d69e2e;
    background-color: #fefcbf;
    border-color: #f6e05e;
    animation: urlPulse 1s ease-in-out infinite;
}

.url-status-indicator.success {
    color: #2f855a;
    background-color: #c6f6d5;
    border-color: #48bb78;
    animation: none;
}

.url-status-indicator.error {
    color: #c53030;
    background-color: #fed7d7;
    border-color: #f56565;
    animation: none;
}

@keyframes urlPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease-in;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-content p {
    color: #2d3748;
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 100px;
}

.modal-btn-cancel {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.modal-btn-cancel:hover {
    background-color: #f7fafc;
}

.modal-btn-confirm {
    background-color: #e53e3e;
    color: white;
}

.modal-btn-confirm:hover {
    background-color: #c53030;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-btn {
        width: 100%;
    }
}