/**
 * Custom CSS for email-instellenv2
 * Styled according to the provided style guide and matching KeurigOnline aesthetic
 */

/* Global styles */
:root {
    /* Color Palette */
    --primary-color: #FF8400; /* Primary Accent (Orange) */
    --primary-dark: #E67700; /* Darker shade for hover states */
    --primary-soft: rgba(255, 132, 0, 0.1); /* Soft orange for backgrounds */

    --secondary-color: #36B295; /* Secondary Accent (Green/Teal) */
    --secondary-dark: #2E9A80; /* Darker shade for hover states */
    --secondary-soft: rgba(54, 178, 149, 0.1); /* Soft teal for backgrounds */

    --neutral-base: #F8FCF6; /* Neutral Base (Off-white with slight green tint) */

    /* Text Colors */
    --text-heading: #1A1A1A; /* Very dark gray for headings */
    --text-body: #333333; /* Slightly lighter for body text */
    --text-muted: #777777; /* Mid-gray for secondary info */

    --border-color: rgba(0, 0, 0, 0.05); /* Subtle dividers/lines */

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;

    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 32px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    line-height: 1.5;
    background: #F8FCF6;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

p {
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Logo */
.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-image {
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@media (max-width: 768px) {
    .logo-image {
        max-height: 32px;
    }
}

/* Cards */
.card {
    background: transparent;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: var(--space-sm);
}

/* Client cards */
.client-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.client-card .card-img-wrapper {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.client-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.client-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: white;
}

.client-card .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.client-card .card-text {
    flex-grow: 1;
    margin-bottom: 1.25rem;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Client card button styling */
.client-card .btn-primary {
    background-color: #3b82f6;
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 24px;
    transition: all 0.2s ease;
}

.client-card .btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.client-card .btn-primary i {
    opacity: 0.9;
}

.client-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.client-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Grid layout adjustments */
.row-cols-1 {
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .row-cols-sm-2 > * {
        flex: 0 0 calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
    }
}

@media (min-width: 1024px) {
    .row-cols-lg-3 > * {
        flex: 0 0 calc(33.333333% - 1.5rem);
        max-width: calc(33.333333% - 1.5rem);
    }
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: rgba(242, 101, 34, 0.1);
    border: 1px solid rgba(242, 101, 34, 0.2);
    color: #F26522;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--secondary-color);
    color: white;
}

/* Form elements */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select {
    border-radius: 24px;
}

.form-control:focus {
    border-color: #F26522;
    box-shadow: 0 0 0 0.2rem rgba(242, 101, 34, 0.25);
}

.input-group-text {
    background-color: #F8FCF6;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--space-md) var(--space-lg);
}

.alert-info {
    background-color: var(--secondary-soft);
    color: var(--secondary-dark);
}

.alert-success {
    background-color: rgba(0, 182, 122, 0.1);
    color: #00b67a;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Badge wrapper */
.badge-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    width: fit-content;
    border: 1.5px solid var(--border-color);
    border-radius: 104px;
    padding: 4px 20px 4px 4px;
    background: #fff;
}

.badge-wrapper .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-right: 8px;
}

.badge-wrapper .badge-text {
    color: var(--text-heading);
    font-size: 14px;
    font-weight: 600;
}

/* Step container with reduced spacing */
.step-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.75rem 0;
    padding: 0.5rem 0;
}

.step-progress-wrapper {
    flex: 1;
    position: relative;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 100px;
    overflow: visible;
}

.step-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 15px;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    border-radius: 100px;
    transition: width 0.3s ease;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    margin-top: -14px;
    min-width: 32px;
    margin-left: -15px;
    margin-right: -15px;
}

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

.step.finished {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Button styling for both navigation sets */
#prevBtn, #nextBtn, #stepPrevBtn, #stepNextBtn {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 100px;
}

#prevBtn span, #nextBtn span, #stepPrevBtn span, #stepNextBtn span {
    margin: 0 var(--space-xs);
}

#prevBtn i, #nextBtn i, #stepPrevBtn i, #stepNextBtn i {
    font-size: 0.875rem;
}

/* Remove the code that hides the step container buttons */
.step-container #prevBtn,
.step-container #nextBtn,
.step-container #stepPrevBtn,
.step-container #stepNextBtn {
    display: inline-flex;
}

/* Tabs */
.tabs-container {
    margin-bottom: var(--space-lg);
}

.nav-tabs .nav-link {
    color: var(--text-body);
    border: none;
    padding: var(--space-sm) var(--space-md);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.tab-content {
    padding: var(--space-lg) 0;
    padding-bottom: 0px;
}

/* Image container for steps */
.image-container {
    margin: 0.75rem 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    text-align: center;
}

.image-container canvas {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideUp {
    animation: slideUp 0.5s ease forwards;
}

/* Responsive improvements for step container */
@media (max-width: 768px) {
    .step-container {
        flex-direction: column;
        gap: var(--space-md);
    }

    .step-progress-wrapper {
        width: 100%;
        margin: var(--space-md) 0;
        order: 1;
    }

    #stepPrevBtn {
        order: 3;
        width: 100%;
    }

    #stepNextBtn {
        order: 2;
        width: 100%;
    }

    .card-img-wrapper {
        height: 140px;
    }

    .card-body {
        padding: var(--space-md);
    }

    .btn {
        width: 100%;
        margin-bottom: var(--space-sm);
    }
}

/* Return link */
.keer-terug {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: var(--space-md);
    transition: color 0.2s ease;
}

.keer-terug:hover {
    color: var(--primary-color);
}

.keer-terug i {
    margin-right: var(--space-xs);
}

/* Server info card */
.server-info-card {
    background-color: rgba(242, 101, 34, 0.03);
    border-radius: 32px;
    overflow: hidden;
}

.server-info-header {
    background-color: #F8F1E7;
    color: #333333 !important;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.server-info-header:hover {
    background-color: rgba(242, 101, 34, 0.12);
}

.server-info-header i {
    font-size: 1.25rem;
    margin-right: 1rem;
    color: #F26522;
}

.server-info-header h6 {
    margin-bottom: 0;
    font-weight: 600;
    color: #333333;
    flex-grow: 1;
}

.collapse-toggle {
    background: none;
    border: none;
    color: #666666;
    font-size: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.collapse-toggle:focus {
    outline: none;
}

.server-info-header[aria-expanded="false"] .collapse-toggle {
    transform: rotate(180deg);
}

.server-info-content {
    padding: 2rem;
}

.server-info-group {
    margin-bottom: 1.5rem;
}

.server-info-group:last-child {
    margin-bottom: 0;
}

.server-info-label {
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.server-info-value {
    color: #333333;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.copy-text {
    flex-grow: 1;
    margin-right: 0.5rem;
    word-break: break-all;
}

.copy-btn {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background-color: rgba(242, 101, 34, 0.08);
    color: #F26522;
}

.copy-btn.copied {
    background-color: rgba(242, 101, 34, 0.1);
    color: #F26522;
}

.copy-btn i {
    font-size: 1rem;
}

.server-info-note {
    background-color: rgba(255, 255, 255, 0.8);
    border-left: 2px solid rgba(242, 101, 34, 0.3);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.server-info-note i {
    color: #F26522;
    opacity: 0.8;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.server-info-note a {
    color: #F26522;
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 101, 34, 0.3);
    font-weight: 500;
}

.server-info-note a:hover {
    color: #E55A1A;
    border-bottom-color: #E55A1A;
}

/* Footer */
.footer {
    margin-top: var(--space-xxl);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Main container */
.main-container {
    background-color: #F8FCF6;
}

/* Tab styles */
.tab {
    display: none;
    background-color: #F8FCF6;
    margin-bottom: 0.5rem;
}

.tab h3 {
    margin-bottom: 0.5rem;
}

.tab p {
   margin-top: 1.2rem;
    margin-bottom: 0.75rem;
}

/* Toolbar */
.toolbar-container {
    border-radius: 16px;
    overflow: visible;
    position: relative;
    z-index: 1050;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0rem;
    gap: 1rem;
}

/* Search */
.search-container {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-container input {
    padding-left: 2.5rem;
    border-radius: 100px;
    border: 1px solid #e0e0e0;
    height: 40px;
}

.search-container input:focus {
    border-color: #F26522;
    box-shadow: 0 0 0 0.2rem rgba(242, 101, 34, 0.25);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Toolbar Actions */
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* View Toggle */
.view-toggle {
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* OS Filter */
.os-filter {
    position: relative;
    z-index: 1060;
}

/* Toolbar Buttons */
.toolbar-btn {
    background: none;
    border: none;
    color: #6c757d;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.toolbar-btn:hover {
    background-color: #f8f9fa;
    color: #F26522;
}

.toolbar-btn.active {
    background-color: #F26522;
    color: white;
}

.toolbar-btn.dropdown-toggle {
    width: auto;
    padding: 0 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    gap: 0.5rem;
    height: 40px;
}

.toolbar-btn.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5em;
    vertical-align: 0.15em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.current-filter {
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

/* Dropdown Menu */
.dropdown-menu {
    z-index: 1070 !important;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    min-width: 200px;
    background-color: var(--neutral-base);
    margin-top: 0.5rem;
    position: absolute !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm);
    color: var(--text-body);
    font-weight: 500;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--primary-soft);
    color: var(--primary-color);
    text-decoration: none;
}

.dropdown-item i {
    width: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.dropdown-item:hover i {
    color: var(--primary-dark);
}

/* List View */
.clients-list-view {
    margin-bottom: 2rem;
}

.list-group-item {
    border-radius: 12px !important;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8fcf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.client-list-icon {
    width: 50px;
    height: 50px;
    background-color: #f8fcf6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #36B295;
    font-size: 1.5rem;
}

@media (max-width: 576px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Tooltip */
.tooltip {
    z-index: 10000 !important;
}

.tooltip-inner {
    background-color: #333;
    color: white;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    max-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #333;
}

.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #333;
}

.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,
.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #333;
}

.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,
.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #333;
}

/* Empty state */
.empty-state {
    margin-bottom: 2rem;
}

.empty-state-container {
    background-color: transparent;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(242, 101, 34, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #F26522;
    font-size: 2rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.empty-state-text {
    color: #666;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.empty-state-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
    z-index: 1;
}

.empty-state-divider span {
    position: relative;
    background-color: #F8FCF6;
    padding: 0 1rem;
    color: #888;
    font-size: 0.9rem;
    z-index: 2;
}

.empty-state-form {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-form h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.empty-state-form p {
    color: #666;
    margin-bottom: 1.5rem;
}

.view-toggle-btn.active {
    background-color: #F26522;
    color: white;
}

.os-filter-btn.active {
    background-color: #F26522;
    color: white;
}

/* Tab navigation improvements */
.tab-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
}

/* Title improvements */
h1.h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

/* Card improvements */
.card {
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: var(--space-lg);
}

.card-body {
    padding: var(--space-lg);
    padding-top: var(--space-lg) !important;
}

/* Ensure proper spacing between elements */
.mb-4 {
    margin-bottom: var(--space-lg) !important;
}

.mt-4 {
    margin-top: var(--space-lg) !important;
}

.mt-5 {
    margin-top: var(--space-xl) !important;
}

/* Ensure proper button styling */
.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: white;
}

.btn-outline-secondary {
    color: var(--text-body);
    border-color: var(--border-color);
    background-color: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--border-color);
    color: var(--text-heading);
    border-color: var(--border-color);
}

/* Progress bar styling */
.step-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    border-radius: 100px;
    transition: width 0.3s ease;
}

/* Ensure proper spacing in mobile view */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
        gap: var(--space-md);
    }

    .tab-navigation button {
        width: 100%;
    }

    .card-body {
        padding: var(--space-md);
    }

    h1.h3 {
        font-size: 1.5rem;
    }
}

/* Icon-only button styling */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-icon i {
    font-size: 1rem;
}

.btn-icon:hover {
    background-color: var(--border-color);
    color: var(--text-heading);
}

/* Margin utilities with reduced spacing */
.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mt-3 {
    margin-top: 0.75rem !important;
}

/* For many steps, ensure they don't overlap */
@media (min-width: 768px) {
    .step-progress-wrapper {
        min-width: 300px;
    }

    /* When there are many steps, adjust their size */
    .step-progress.many-steps .step {
        width: 28px;
        height: 34px;
        font-size: 12px;
        margin-top: -12px;
    }
}

/* Print styles */
@media print {
    /* Optimize page layout for printing */
    @page {
        margin: 0.5cm;
        size: portrait;
    }

    /* Reset body and container styles for print */
    body {
        color: black;
        background: white;
        margin: 0;
        padding: 0;
    }

    .container, .main-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .row {
        margin: 0;
    }

    .col-lg-10, .col-md-12 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0;
    }

    /* Optimize title for print */
    h1.h3 {
        font-size: 24px;
        margin-top: 0;
        margin-bottom: 20px;
        page-break-after: avoid;
        color: black;
    }

    /* Show all tabs when printing */
    .tab {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
    }

    /* Last tab doesn't need a border */
    .tab:last-child {
        border-bottom: none;
    }

    /* Hide navigation elements when printing */
    .step-container,
    .tab-navigation,
    .dropdown,
    .btn-icon,
    .logo-link {
        display: none !important;
    }

    /* Ensure proper spacing and layout for print */
    .card {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
    }

    .card-body {
        padding: 0;
    }

    /* Ensure images are properly sized */
    .image-container {
        box-shadow: none;
        border: 1px solid #eee;
        max-width: 100%;
        page-break-inside: avoid;
        margin: 10px 0;
        padding: 10px;
    }

    /* Add step numbers to printed content */
    .tab {
        position: relative;
    }

    .tab::before {
        content: "Stap " attr(data-step-number) ": ";
        font-weight: bold;
        display: inline;
    }

    /* Ensure text is black for better printing */
    h1, h2, h3, h4, h5, h6, p {
        color: black;
    }

    /* Avoid page breaks inside paragraphs */
    p {
        page-break-inside: avoid;
    }

    /* Add title to the first page */
    .card-body::before {
        content: attr(data-title);
        display: block;
        font-size: 28px;
        font-weight: bold;
        text-align: center;
        margin-bottom: 0;
        color: black;
    }

    /* Hide the regular title to avoid duplication */
    .d-flex.flex-column.align-items-center {
        display: none !important;
    }

    /* Ensure the content starts immediately */
    .tab-content {
        margin-top: 0;
    }

    /* Remove animations */
    .animate-slideUp {
        animation: none !important;
        opacity: 1 !important;
    }

    /* Remove any background colors */
    * {
        background-color: transparent !important;
    }
}

/* Printing class for JavaScript control */
body.printing {
    background-color: white !important;
    height: auto !important;
    overflow: visible !important;
}

body.printing * {
    visibility: hidden;
}

body.printing .card-body,
body.printing .tab,
body.printing .tab *,
body.printing .card-body::before {
    visibility: visible;
}

/* Client card button styling */
.client-card .btn-primary {
    background-color: rgba(242, 101, 34, 0.08);
    border: 1px solid rgba(242, 101, 34, 0.15);
    color: #F26522;
    font-weight: 500;
}

.client-card .btn-primary:hover {
    background-color: rgba(242, 101, 34, 0.12);
    border-color: rgba(242, 101, 34, 0.2);
    color: #E55A1A;
}

/* Help Card Styling */
.help-card {
    border: none;
    background: linear-gradient(to right, rgba(242, 101, 34, 0.03), rgba(242, 101, 34, 0.08));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.08);
}

.help-card .card-body {
    padding: 2rem;
}

.help-card-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.help-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(242, 101, 34, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-card-icon i {
    font-size: 24px;
    color: #F26522;
}

.help-card-text h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.help-card-text p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.help-card-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.help-card .btn-outline-primary {
    background-color: rgba(242, 101, 34, 0.08);
    border: 1px solid rgba(242, 101, 34, 0.15);
    color: #F26522;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    white-space: nowrap;
}

.help-card .btn-outline-primary:hover {
    background-color: rgba(242, 101, 34, 0.12);
    border-color: rgba(242, 101, 34, 0.2);
    color: #E55A1A;
    text-decoration: none;
}

.help-card .btn-link {
    color: #666;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.help-card .btn-link:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
    border-color: rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.help-card .btn i {
    opacity: 0.8;
}

/* Responsive adjustments for help card */
@media (max-width: 992px) {
    .help-card-content {
        grid-template-columns: auto 1fr;
    }

    .help-card-actions {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .help-card .card-body {
        padding: 1.5rem;
    }

    .help-card-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .help-card-icon {
        margin: 0 auto;
    }

    .help-card-actions {
        flex-direction: column;
        width: 100%;
    }

    .help-card .btn {
        width: 100%;
    }
}

/* Also update the global button hover style to ensure consistency */
.btn:hover {
    text-decoration: none;
}

.client-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.client-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.client-card-link:hover .client-card {
    transform: translateY(-4px);
}

.client-card-link:hover .btn-primary {
    background-color: rgba(242, 101, 34, 0.12);
    border-color: rgba(242, 101, 34, 0.2);
    color: #E55A1A;
}

/* Update client card to remove duplicate hover effect */
.client-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #F8FCF6;
}

.client-card:hover {
    transform: none;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: rgba(242, 101, 34, 0.08);
    color:#222;
}

.dropdown-item {
    padding-left: 10px;
}

.dropdown-item i {
    margin-right: 15px
}

/* Improved Step Styling */
.tab {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 0px;
}

/* Better typography and spacing for step title */
.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Improved step description */
.step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Better image container */
.tab:not([data-show-confetti="true"]) .image-container {
    background-color: #F8ECE0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Improve canvas display */
.image-container canvas {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

/* Add section dividers */
.content-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.05);
    margin: 1.5rem 0;
}

/* Improve step container spacing */
.step-container {
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab {
        padding: 1rem;
    }

    .image-container {
        padding: 1rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* Improve step navigation buttons */
#stepPrevBtn, #stepNextBtn, #prevBtn, #nextBtn {
    min-width: 120px;
}

/* Congratulation container improvements */
.congratulation-title {
    margin-bottom: 1.25rem;
}

/* Improve PhotoSwipe caption */
.pswp__custom-caption {
    background: rgba(0, 0, 0, 0.75);
    padding: 1rem 1.5rem;
}

.text-primary {
    color: #F26522 !important;
}


#domein-form input {
    border-top-right-radius: 100px !important;
    border-bottom-right-radius: 100px !important;
}