:root {
    --primary-color: #0058ff;
    --secondary-color: #0046cc;
    --error-color: #dc3545;
    --success-color: #0058ff;
    --warning-color: #ffc107;
    --border-color: #dee2e6;
    --text-color: #333333;
    --text-muted: #666666;
    --background-color: #ffffff;
    --light-bg: #f8f9fa;
    --header-bg: #2d2d2d;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --active-color: #e11a77
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f3f4f6;
}

.wizard-container {
    max-width: 800px;
    margin: 2rem auto;
    background-color: var(--background-color);
    border-radius: 4px;
    box-shadow: 0 2px 5px var(--shadow-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 4rem);
}

.wizard-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-content h1 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.trustarc-logo {
    width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 4rem;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: 600;
    color: var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;  /* Ensure circle is above the line */
    box-shadow: 0 0 0 4px var(--background-color);  /* Create white space around circle */
}

.step-label {
    margin-top: 0.5rem;
    color: var(--border-color);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    border-color: var(--active-color);
    background-color: var(--active-color);
    color: white;
}

.step.active .step-label {
    color: var(--active-color);
    font-weight: 600;
}

.step.completed .step-circle {
    border-color: var(--success-color);
    background-color: var(--success-color);
    color: white;
}

.step.completed .step-label {
    color: var(--success-color);
}

/* Progress line for completed steps */
.step.completed::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);  /* Half of circle width */
    width: calc(100% - 40px);  /* Subtract circle width */
    height: 2px;
    background-color: var(--success-color);
    z-index: 0;  /* Place the line behind the circles */
}

.wizard-content {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.step-content {
    display: none;
}

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

.wizard-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background-color: var(--background-color);
    z-index: 999;
}

button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
}

.btn-secondary:hover {
    background-color: var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-color);
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: monospace;
    resize: vertical;
}

.welcome-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.welcome-heading::after {
    content: '';
    height: 2px;
    background-color: var(--border-color);
    flex-grow: 1;
    margin-left: 1rem;
    opacity: 0.7;
}

.welcome-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.option-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}


button#start-fresh {
  margin-top: auto;
}
.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.option-card h3 {
    margin-bottom: 1rem;
    color: var(--active-color);
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 100%;
    padding-left: 0.25rem;
}

.disclaimer-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--warning-color);
    background-color: rgba(255, 193, 7, 0.05);
    border-radius: 4px;
}

.option-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.option-card .btn-primary {
    width: 100%;
    margin-top: 1rem;
}

.error-message {
    color: var(--error-color);
    margin-top: 0.5rem;
    display: none;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.integration-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    min-height: 200px;
    box-shadow: 0 1px 3px var(--shadow-color);
    cursor: pointer;
}

.integration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.integration-card.selected {
    border: 2px solid var(--primary-color);
    background-color: rgba(0, 88, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 88, 255, 0.15);
}

.integration-card.selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 88, 255, 0.25);
    background-color: rgba(0, 88, 255, 0.08);
}

.integration-card-content {
    flex-grow: 1;
}

.integration-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.integration-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.integration-footer {
    margin-top: auto; /* Push footer to bottom */
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.integration-icon {
    width: 64px;
    height: 64px;
    margin-right: 0.75rem;
    object-fit: contain;
}

.config-count {
    font-size: 0.875rem;
    color: #666;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.integration-config-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);  /* Made border slightly thicker for better visibility */
    border-radius: 4px;
    background: var(--background-color);
}

.form-group {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);  /* Made border slightly thicker for better visibility */
}

.form-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem; /* Slightly reduced from 0.5rem */
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group .field-description {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.375rem; /* Slightly reduced from 0.5rem */
    font-style: italic;
    max-width: 90%;
}

.form-group input:not([type="radio"]):not([type="checkbox"]) {
    width: 100%;
    padding: 0.625rem;
    border: 2px solid var(--border-color);  /* Made border slightly thicker for better visibility */
    border-radius: 4px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:not([type="radio"]):not([type="checkbox"]):focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 88, 255, 0.1);
    outline: none;
}

.code-container {
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2d2d2d;
    padding: 0.75rem 1.5rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    color: #808080;
    border-bottom: 1px solid #3d3d3d;
}

.copy-button {
    background-color: #3d3d3d;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background-color: #4d4d4d;
}

.copy-button.copied {
    background-color: var(--success-color);
}

pre {
    margin: 0;
    padding: 0;
    background-color: #1e1e1e;
}

pre code.hljs {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    padding: 1.5rem;
    display: block;
    overflow-x: auto;
    background: #1e1e1e;  /* VS2015 theme background */
    color: #dcdcdc;      /* VS2015 theme text color */
}

.export-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.export-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.export-options button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
}

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

.step.completed:hover .step-circle {
    cursor: pointer;
}

.config-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);  /* Made border slightly thicker for better visibility */
}

.config-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    font-size: 1rem;
}

.feedback-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 4px;
    background-color: var(--success-color);
    color: white;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.feedback-message.show {
    opacity: 1;
    transform: translateY(0);
}

.feedback-message.error {
    background-color: var(--error-color);
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background-color: #dc3545;
}

.toast.success {
    background-color: #28a745;
}

.toast.warning {
    background-color: #ffc107;
    color: #333;
}

.logging-mode-toggle {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logging-label {
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Required field indicators */
.form-group label.required::after {
    content: '*';
    color: var(--error-color);
    margin-left: 4px;
}

/* Input error states */
.input-error {
    border: 2px solid var(--error-color) !important;
    background-color: rgba(231, 76, 60, 0.02) !important;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-error:focus {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
    outline: none !important;
}

.ip-input {
    font-family: monospace;
}

.ip-input:invalid {
    border-color: var(--error-color);
    background-color: rgba(220, 53, 69, 0.05);
}

.ip-input:invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.radio-group {
    display: flex;
    flex-direction: row;  /* Changed from column to row */
    gap: 16px;  /* Increased gap for better horizontal spacing */
    margin: 8px 0;
    align-items: center;  /* Center items vertically */
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;  /* Prevent label text from wrapping */
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.release-notes {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
}

.release-notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.release-notes-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.release-notes-content.show {
    display: block;
    opacity: 1;
}

.release-notes-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.release-notes-toggle:hover {
    background-color: rgba(0, 88, 255, 0.1);
}

.release-note {
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
    background-color: var(--light-bg);
    border-radius: 4px;
}

.release-note:last-child {
    margin-bottom: 0;
}

.release-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.release-note-version {
    font-weight: 600;
    color: var(--primary-color);
}

.release-note-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.release-note ul {
    margin: 0;
    padding-left: 1.5rem;
}

.release-note li {
    margin: 0.25rem 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.modal-content {
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.5rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.release-note {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-color);
    background-color: var(--light-bg);
    border-radius: 4px;
}

.release-note:last-child {
    margin-bottom: 0;
}

.release-notes-badge {
    margin-bottom: 1.5rem;
}

.btn-release-notes {
    display: inline-flex;
    align-items: center;
    background-color: var(--light-bg);
    border: 2px solid var(--primary-color);
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.release-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 400px;
    max-width: 90%;
    background-color: var(--background-color);
    box-shadow: -3px 0 15px var(--shadow-color);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.slide-panel.show {
    transform: translateX(0);
}

.slide-panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.slide-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--light-bg);
}

.slide-panel-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.slide-panel-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.slide-panel-close:hover {
    color: var(--text-color);
}

.slide-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

/* Release Note Badge */
.release-note-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500;
}

.btn-float {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    position: relative;
}

.btn-float:hover {
    transform: translateY(-2px);
    background-color: var(--secondary-color);
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.btn-float-label {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--active-color);
    color: white;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    animation: blink 1.5s ease-in-out infinite;
}

.release-info {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.release-info strong {
    color: var(--text-color);
}

.release-link {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 0.5rem;
    position: relative;
    padding-bottom: 1px;
    font-weight: 500;
}

.release-link:hover {
    text-decoration: none;
}

.release-link:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.release-link:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-buttons {
    display: flex;
    gap: 1rem;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.powered-by-logo {
    height: 24px;
    width: auto;
}

.form-input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-bottom: 0.5rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 88, 255, 0.25);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-header-separator {
    margin: 2rem 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--text-color, #0058ff);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color, #0058ff);
    letter-spacing: 0.5px;
    background: none;
    text-align: left;
}
.form-header-separator span {
    background: var(--background-color, #fff);
    padding: 0 0.5rem;
    position: relative;
    top: 0.5rem;
}

/* Integration Groups */
.integration-group {
    margin-bottom: 2rem;
}

.integration-group-header {
    margin-bottom: 1rem;
    padding: 1.2rem 1.5rem;
    background: #ffffff;
    color: var(--text-color);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.integration-group-header:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(0, 88, 255, 0.08);
    transform: translateY(-1px);
}

/* Color coding for different groups */
.integration-group-header[data-group="trustarc-platform"] {
    border-left: 4px solid var(--primary-color);
}

.integration-group-header[data-group="google-ecosystem"] {
    border-left: 4px solid var(--active-color);
}

.integration-group-header[data-group="content-management"] {
    border-left: 4px solid var(--primary-color);
}

.integration-group-header[data-group="marketing-analytics"] {
    border-left: 4px solid var(--active-color);
}

.integration-group-header[data-group="ecommerce-platforms"] {
    border-left: 4px solid var(--primary-color);
}

.integration-group-header[data-group="global-config"] {
    border-left: 4px solid var(--active-color);
}

.group-header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    gap: 1rem;
    min-height: 32px; /* Ensure consistent height regardless of logo presence */
}

/* Logo container to enforce sizing */
.group-header-content .group-logo-container {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 0.5rem;
}

.group-header-content .group-text {
    flex: 1;
    min-width: 0;
}

.group-header-content h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.25px;
    color: var(--text-color);
}

.group-description {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-muted);
}

.group-logo {
    width: 64px;
    height: 48px;
    object-fit: contain;
    object-position: center;
    opacity: 0.85;
    flex-shrink: 0;
    display: block;
    transition: opacity 0.2s ease;
    /* Hide broken images gracefully */
    background-color: transparent;
    /* Force image to respect container size */
    max-width: 64px !important;
    max-height: 48px !important;
    min-width: 0;
    min-height: 0;
}

.group-logo:not([src]), .group-logo[src=""], .group-logo:not([src*="."]){
    display: none;
}

/* Specific handling for PNG logos like Google */
.group-logo[src*=".png"] {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Specific styling for global settings icon - make it bigger */
.global-settings-logo {
    width: 80px !important;
    height: 60px !important;
    max-width: 80px !important;
    max-height: 60px !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Adjust container size for global settings icon */
.integration-group-header[data-group="global-config"] .group-logo-container {
    width: 80px;
    height: 60px;
}

.integration-group-header:hover .group-logo {
    opacity: 1;
}

/* Hide logo space when no icon is present */
.group-header-content:not([data-has-logo="true"]) .group-logo {
    display: none;
}

/* Responsive design for group headers */
@media (max-width: 768px) {
    .integration-group-header {
        padding: 1rem 1.25rem;
    }
    
    .group-header-content {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .group-header-content h3 {
        font-size: 1rem;
    }
    
    .group-description {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .group-logo {
        width: 48px;
        height: 36px;
    }
    
    .group-header-content .group-logo-container {
        width: 48px;
        height: 36px;
        margin-right: 0.5rem;
    }
    
    /* Global settings icon remains larger even on mobile */
    .integration-group-header[data-group="global-config"] .group-logo-container {
        width: 60px;
        height: 45px;
    }
    
    .global-settings-logo {
        width: 60px !important;
        height: 45px !important;
        max-width: 60px !important;
        max-height: 45px !important;
    }
}

.doc-link-container a:hover {
    text-decoration: underline;
    color: #174080;
}


