:root {
    --primary-color: #1A5E2D;
    --primary-color-darker: #004b23;
    --secondary-color: #c82333;
    --light-gray: #f8f9fa; 
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-color: #212529;
    --text-color-light: #495057;
    --progress-bar-bg: var(--medium-gray);
    --progress-bar-fill: var(--primary-color);
    --button-bg: #ffffff;
    --button-hover-bg: #f1f3f5;
    --button-active-bg: var(--primary-color);
    --button-active-text: white;
    --border-color: #dee2e6;
    --border-radius: 8px;
    --box-shadow: 
    0px 1.4px 2.2px rgba(0, 0, 0, 0.02),
    0px 3.3px 5.3px rgba(0, 0, 0, 0.028),
    0px 6.3px 10px rgba(0, 0, 0, 0.035),
    0px 11.2px 17.9px rgba(0, 0, 0, 0.042),
    0px 20.9px 33.4px rgba(0, 0, 0, 0.05),
    0px 50px 80px rgba(0, 0, 0, 0.07);
    --can-visual-color: #adb5bd;
    --price-highlight-bg: #e0f2e0;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    --header-bg: #ffffff;
    --header-border: #e9ecef;
    --header-shadow: rgba(0, 0, 0, 0.06);
    --header-height: 70px;
}

body.dark-mode {
    --light-gray: #121212;
    --medium-gray: #1E1E1E;
    --main-panel-bg: #1E1E1E; 
    --text-color: #EAEAEA;
    --text-color-light: #A0A0A0;
    --dark-gray: #A0A0A0;
    --border-color: #383838;
    --primary-color: #EAEAEA;
    --secondary-color: #FF6B6B;
    --header-bg: var(--medium-gray);
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    --price-info-placeholder-bg: #2a2a20;
    --price-info-placeholder-border: #5c5c44;
    --price-info-placeholder-text: #d4c99b;
}

body {
    font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
                 Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
                 'Segoe UI Symbol');
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.visualization-container {
    text-align: center;
    max-width: 100%;
    padding: 0 !important; 
}

.visualization-image-container {
    width: 100%;
    max-width: 100%; 
    border-radius: var(--border-radius);
    overflow: hidden;
}

#stand-visualization-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: calc(var(--border-radius) - 1px);
}

.config-section-box {
    background-color: #fff;
    padding: 25px 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.config-section-box .config-section h2 {
    margin-top: 0;
}

.config-section h4 {
    margin-top: 0;
    margin-bottom: 15px; 
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    font-weight: 600;
    font-size: 1.15rem;
}
.required {
    color: var(--secondary-color);
    font-weight: bold;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.quantity-button-group {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.option-button {
    padding: 10px 12px;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.3;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}
.option-button .button-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
}

.button-details {
    font-size: 0.8em;
    color: var(--text-color-light);
    display: block; margin-top: 2px;
}

body:not(.dark-mode) .option-button:hover {
    background-color: var(--primary-color);
    color: white; 
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body:not(.dark-mode) .option-button:hover .button-details {
    color: rgba(255, 255, 255, 0.9);
}

.option-button:focus, .option-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 94, 45, 0.35);
}

.option-button.active {
    background-color: var(--button-active-bg);
    color: var(--button-active-text);
    border-color: var(--button-active-bg);
    font-weight: 600;
    box-shadow: none;
    transform: translateY(0);
}

.option-button.active .button-details {
    color: rgba(255, 255, 255, 0.85);
}

.option-button.active.size-button-visual::before,
.option-button:hover.size-button-visual::before {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.95);
}

.size-button-visual { justify-content: flex-start; }
.size-button-visual::before { content: ''; width: 12px; background-color: var(--can-visual-color); border: 1px solid #8F98A0; border-radius: 2px; margin-right: 5px; flex-shrink: 0; align-self: center; }
.size-button-visual[data-size="small"]::before { height: 16px; }
.size-button-visual[data-size="medium"]::before { height: 20px; }
.size-button-visual[data-size="large"]::before { height: 24px; }
.option-button.active.size-button-visual::before { background-color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.9); }

.can-selection-section { padding-top: 0; }
.progress-bar { width: 100%; height: 10px; background-color: var(--progress-bar-bg); border-radius: 5px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0; background-color: var(--progress-bar-fill); transition: width 0.4s ease-in-out; border-radius: 5px; }
.progress-text { font-size: 0.85em; color: var(--dark-gray); margin-top: 4px; line-height: 1.3; }

.reset-button-secondary {
    padding: 8px 16px;
    border: 1px solid var(--secondary-color);
    background-color: transparent;
    color: var(--secondary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.reset-button-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.can-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.can-config { border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 20px 25px; background-color: #fff; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.can-config:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 0.15rem rgba(0, 87, 0, 0.2); }
.can-config legend {
    font-weight: 600;
    color: var(--primary-color);
    padding: 0 5px;
    font-size: 1.1em;
    margin-bottom: 10px;
}
.can-config label { display: block; margin-bottom: 6px; margin-top: 8px; font-size: 0.9rem; font-weight: 500; color: var(--dark-gray); }
.can-config select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color:white;
    font-size: 0.95rem; box-sizing: border-box; appearance: none;
    border-color: var(--border-color);
    font-size: 0.95rem;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22%236c757d%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M8%2011.646l-4.854-4.854a.5.5%200%200%201%20.708-.708L8%2010.293l4.146-4.147a.5.5%200%200%201%20.708.708L8%2011.646z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em auto; cursor: pointer; transition: border-color 0.2s ease;

}

.can-config select:hover {
    border-color: var(--dark-gray);
}

.can-config select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 94, 45, 0.3);
}

.can-config select:disabled { background-color: var(--light-gray); cursor: not-allowed; opacity: 0.65; }

.visualization-container, .price-summary, .price-info-placeholder, .instructions-panel, .random-set-section.card-style {
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    background-color: #fff;
}
.price-summary {
    background-color: #f0fff0;
    border: 1px solid var(--primary-color);
}
.price-info-placeholder { background-color: #fff3cd; border-color: #ffeeba; color: #856404; text-align: center; font-size: 1rem;}

.price-summary h3 { margin-top: 0; margin-bottom: 15px; color: var(--primary-color); text-align: center; font-weight: 600; font-size: 1.2rem; text-transform: uppercase; }
.price-summary p { margin: 8px 0; font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-color); flex-wrap: nowrap; gap: 10px; }
.price-summary p span:first-child { color: var(--dark-gray); }
.price-summary p span:last-child { font-weight: 700; color: var(--text-color); text-align: right; flex-shrink: 0; }
.price-summary hr { border: none; border-top: 1px solid var(--medium-gray); margin: 15px 0; }
.price-summary .total-price, .price-summary .total-order-price { font-size: 0.95rem; color: var(--primary-color); background-color: var(--price-highlight-bg); padding: 10px 15px; margin-top: 10px; border-radius: var(--border-radius); display: flex; justify-content: space-between; align-items: center; }
.price-summary .total-order-price { align-items: flex-start; }
.price-summary .total-price span:first-child { font-weight: 500; line-height: 1.3; }
.price-summary .total-price span:last-child { font-weight: 700; font-size: 1.1em; white-space: nowrap; margin-left: 10px; }
.price-summary .total-order-price .label-main-text { line-height: 1.3; color: var(--dark-gray); }
.price-summary .total-order-price .label-main-text .quantity-details { display: block; font-size: 0.9em; font-weight: 400; margin-top: 2px; line-height: 1.2; color: var(--dark-gray); }
.price-summary .total-order-price .price-value { font-weight: 700; font-size: 1.1em; white-space: nowrap; margin-left: 10px; align-self: center; color: var(--text-color); }
.price-summary .price-note { font-size: 0.8em; color: var(--dark-gray); text-align: right; margin-top: 10px; }

.instructions-panel {
}
.instructions-panel h4.instruction-toggle {
    margin-top: 0;
    margin-bottom: 0;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-bottom: 1px solid var(--border-color);
}
.instructions-panel h4.instruction-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8em;
    margin-left: 10px;
}
.instructions-panel h4.instruction-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out, padding-bottom 0.3s ease-out;
    padding-top: 0;
    padding-bottom: 0;
}
.collapsible-content.expanded {
    max-height: 1000px;
    padding-top: 15px;
    padding-bottom: 5px;
}
.instruction-content ul { list-style-type: none; padding-left: 0; margin: 0 0 15px 0; }
.instruction-content li { margin-bottom: 12px; padding: 10px 12px; border-left: 4px solid transparent; transition: background-color 0.3s ease, border-left-color 0.3s ease; border-radius: var(--border-radius); }
.instruction-content li.active-step { background-color: #e8f5e9; border-left-color: var(--primary-color); }
.instruction-content li.active-step strong { color: var(--primary-color); }
.instruction-content li strong { display: block; margin-bottom: 6px; color: var(--text-color); font-weight: 500; font-size: 0.95rem; }
.instruction-content li p { font-size: 0.88em; color: var(--dark-gray); margin: 0; line-height: 1.5; }
.instruction-content li p em { color: var(--secondary-color); }
.instruction-content .instructions-note { font-size: 0.8em; color: var(--dark-gray); text-align: center; border-top: 1px solid var(--border-color); padding-top: 10px; margin-top: 15px; }
.instr-optional-step {}

.random-set-section {
}
.random-set-section h4 {
    text-align: center;
    border-bottom: none;
    margin-top:0;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 0;
}

.random-set-info {
    font-size: 0.85em;
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 0;
    text-align: center;
    line-height: 1.4;
}

.random-set-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
}

.random-set-controls label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.input-button-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--button-bg); 
    flex-grow: 1;
    min-width: 100px;
    border-color: var(--border-color);
    height: auto;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    align-items: center;

}
.price-input-wrapper:hover { border-color: var(--dark-gray); }
.price-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 87, 0, 0.25);
    outline: none;

}

.price-input-wrapper input[type="text"] {
    border: none;
    padding: 0;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    background-color: transparent;
    color: var(--text-color);
    text-align: left;
    box-sizing: border-box;
    height: 100%;
    padding: 12px 15px;
    height: auto;
    font-size: 0.95rem;
    padding-right: 40px;
}

.price-unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-gray);
    font-weight: 500;
    pointer-events: none;
}

.price-input-wrapper input[type="text"]::-webkit-outer-spin-button,
.price-input-wrapper input[type="text"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-input-wrapper input[type="text"]::placeholder { color: var(--dark-gray); opacity: 0.7; }

#randomize-set-button.action-button {
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: var(--button-active-text);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
    text-align: center;
    line-height: normal;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    flex-grow: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}
#randomize-set-button.action-button:hover { background-color: #004200; border-color: #003d00; }
#randomize-set-button.action-button:focus { outline: none; box-shadow: 0 0 0 0.2rem rgba(0, 87, 0, 0.25); }
#randomize-set-button.action-button:disabled { background-color: var(--medium-gray); border-color: var(--medium-gray); color: var(--dark-gray); cursor: not-allowed; font-weight: normal; }

.randomize-message { font-size: 0.85em; margin-top: 10px; text-align: center; min-height: 1.2em; padding: 8px; border-radius: var(--border-radius); }
.randomize-message.success { color: var(--primary-color); background-color: var(--price-highlight-bg); border: 1px solid var(--primary-color); }
.randomize-message:not(.success):not(:empty) { color: var(--secondary-color); background-color: #f8d7da; border: 1px solid #f5c6cb; }

.category-filters-section h5 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.category-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    font-size: 0.85rem;
    max-height: 150px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
}

.category-checkboxes label {
    display: flex;
    align-items: center;
    padding: 5px 8px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.category-checkboxes label:hover {
    background-color: var(--button-hover-bg);
    border-color: var(--border-color);
}

.category-checkboxes input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.category-toggle-buttons {
}

.link-style-button {
    background-color: var(--light-gray);
    color: var(--primary-color);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 6px 12px;
    font-size: 0.8em;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.link-style-button:hover {
    background-color: var(--medium-gray);
    border-color: var(--dark-gray);
    color: var(--primary-color-darker);
}

.info-button {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 18px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}
.info-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.info-button .info-icon {
    font-size: 1.1em;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: white;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-gray);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.modal-close-button:hover {
    color: var(--text-color);
}

.modal-content h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.modal-content ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0 0 20px 0;
}

.modal-content li {
    margin-bottom: 15px;
}

.modal-content li strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
}

.modal-content li p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.6;
}
.modal-content li p em {
    color: var(--secondary-color);
    font-style: normal;
}

.modal-content .instructions-note {
    font-size: 0.85em;
    color: var(--dark-gray);
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 20px;
}

#confirm-reset-modal .modal-content {
    max-width: 450px;
    max-height: auto;
    overflow-y: visible;
}

.confirm-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.confirm-modal-buttons .action-button {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.confirm-modal-buttons .confirm-button {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 10px 24px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(100,0,0,0.1);
}
.confirm-modal-buttons .confirm-button:hover {
    background-color: #a71d2a;
    border-color: #a71d2a;
    border-radius: var(--border-radius);
    padding: 10px 24px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(100,0,0,0.1);
}

.confirm-modal-buttons .cancel-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 10px 24px;
    font-weight: 500;
}
.confirm-modal-buttons .cancel-button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

#confirm-reset-modal .modal-content h4 {
    font-size: 1.2rem;
    text-align: left;
    border-bottom: none;
    margin-bottom: 10px;
}

#confirm-reset-modal .modal-content p {
    font-size: 1rem;
}
  
.share-link-section {
    padding: 20px 25px; 
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    background-color: #fff;
    margin-bottom: 25px;
}

.share-link-section h4 {
    text-align: center;
    border-bottom: none;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 0;
}

.share-link-controls-row {
    display: flex;
    align-items: stretch; 
    gap: 10px; 
}

.share-link-section .action-button {
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: var(--button-active-text);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
    text-align: center;
    display: flex; 
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-sizing: border-box;
    flex-shrink: 0; 
}

.share-link-section .action-button:hover {
    background-color: #004200;
    border-color: #003d00;
}
.share-link-section .action-button:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 87, 0, 0.25);
}

#generate-link-button.action-button { 
    min-height: 45px; 
}


#generated-link-container {
    flex-grow: 1; 
}

#generated-link-output {
    width: 100%;
    padding: 12px 15px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    border-color: var(--border-color);
    background-color: var(--light-gray);
    font-size: 0.9em;
    word-break: break-all;
    height: auto; 
    line-height: 1.5;
}

.share-link-copy-row {
    text-align: right;
    margin-top: 8px;
}

#copy-link-button.action-button {
    font-size: 0.9em;
    padding: 6px 12px;
    background-color: var(--dark-gray);
    border-color: var(--dark-gray);
    min-height: auto; 
    width: auto;
    display: inline-flex;
}

#copy-link-button.action-button:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

#copy-link-message {
    font-size: 0.8em;
    margin-top: 5px;
    color: var(--primary-color);
    text-align: right;
}

#generated-link-output {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    font-size: 0.9em;
    word-break: break-all;
}

.share-link-copy-row {
    text-align: right;
    margin-top: 8px;
}

#copy-link-button {
    font-size: 0.9em;
    padding: 6px 12px;
    background-color: var(--dark-gray);
    border-color: var(--dark-gray);
    min-height: auto;
    display: inline-flex;
}
#copy-link-button.action-button:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

#copy-link-message {
    font-size: 0.8em;
    margin-top: 5px;
    color: var(--primary-color);
    text-align: right;
}

.validation-message {
    font-size: 0.8em;
    color: var(--secondary-color);
    margin-top: 5px;
    min-height: 1em;
}

#max-price-input.error {
    border-color: var(--secondary-color) !important; 
    box-shadow: 0 0 0 0.2rem rgba(200, 35, 51, 0.25) !important;
}

.price-input-wrapper.error {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(200, 35, 51, 0.25) !important;
}
.product-info-box {
    padding: 15px;
    font-size: 0.9em;
    background-color: var(--light-gray);
}
.product-info-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 5px;
}
.product-info-box p {
    margin-bottom: 5px;
    line-height: 1.4;
}

.randomize-toggle {
    cursor: pointer;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    user-select: none; 

    border-bottom: none; 
    padding-bottom: 0;
}

.randomize-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8em;
    margin-left: 10px;
}

.randomize-toggle.expanded .toggle-icon {
    transform: rotate(180deg); 
}

.randomize-content { 
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out, padding-bottom 0.3s ease-out, margin-top 0.3s ease-out;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0; 
}

.randomize-content.expanded { 
    max-height: 500px; 
    padding-top: 15px;
    padding-bottom: 15px; 
    margin-top: 10px; 
}

.breadcrumb-nav {
    padding: 0; 
    margin: 0;
    text-align: center;
    background-color: transparent; 
}

.breadcrumb-nav a {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    padding: 12px 28px; 
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500; 
    min-height: auto; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.07);
    margin-top: 20px; 

}

.breadcrumb-nav a:hover {
    background-color: var(--primary-color-darker); 
    border-color: var(--primary-color-darker);
    color: white;
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

#selected-products-list-container {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--medium-gray, #ccc); 
}

#selected-products-list-container h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: var(--text-color);
}

#selected-products-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.9em;
}

#selected-products-list li {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 4px 0;
    border-bottom: 1px dotted var(--light-gray, #eee);
}

#selected-products-list li:last-child {
    border-bottom: none;
}

#selected-products-list .product-name {
    flex-grow: 1;
    padding-right: 10px;
}

#selected-products-list .product-price {
    font-weight: 500;
    white-space: nowrap; 
}

#selected-products-list .category-header {
    font-weight: 600;
    margin-top: 8px;
    padding: 5px 0;
    color: var(--primary-color);
    border-bottom: 1px solid var(--medium-gray, #ccc);
}
#selected-products-list .category-header:first-child {
    margin-top: 0;
}
.toggler-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    user-select: none; 
}

.toggler-header .toggler-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.collapsable-content {
    overflow: hidden;
    max-height: 0; 
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.collapsable-content.open {
    max-height: 1000px;
    opacity: 1;
    padding-top: 15px;
    padding-bottom: 15px;
}

.toggler-header.open .toggler-arrow {
    transform: rotate(180deg);
}

.product-list-controls {
    margin-left: 10px;
    margin-right: 10px;
}

.reroll-slot-button.action-button-small {
    padding: 2px 6px;
    font-size: 0.9em;
    line-height: 1;
}

#randomize-set-button.action-button:focus,
.share-link-section .action-button:focus,
.breadcrumb-nav a:focus,
#randomize-set-button.action-button:focus-visible,
.share-link-section .action-button:focus-visible,
.breadcrumb-nav a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 94, 45, 0.35), 0 2px 4px rgba(0,0,0,0.07);
}

#product-image-tooltip {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: opacity 0.2s ease-in-out;
    max-width: 220px;
}

#product-image-tooltip img#tooltip-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 8px auto;
}

#product-image-tooltip #tooltip-caption {
    font-size: 14px;
    line-height: 1.4;
    text-align: center;

    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#instructions-sidebar .sidebar-content ul.instruction-list { 
    list-style: none;
    padding-left: 0;
}

#instructions-sidebar .sidebar-content ul.instruction-list li {
    background-color: white;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
}

#instructions-sidebar .sidebar-content li strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05em;
    color: var(--text-color);
}

#instructions-sidebar .sidebar-content li p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-color-light);
    line-height: 1.6;
}

#instructions-sidebar .sidebar-content ul.main-steps li.active-step {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color-darker) !important;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(26, 94, 45, 0.2);
}

#instructions-sidebar .sidebar-content ul.main-steps li.active-step strong,
#instructions-sidebar .sidebar-content ul.main-steps li.active-step p {
    color: white !important;
}

.sidebar-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    flex-grow: 1;
}
.sidebar-content h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.inspiration-card {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}
.inspiration-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.inspiration-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}
.inspiration-card h5 {
    margin: 5px 0;
}
.inspiration-card p {
    font-size: 0.85em;
    color: var(--text-color-light);
    margin: 0;
}

#inspirations-sidebar.is-open,
#instructions-sidebar.is-open {
    transform: translateX(0);
}

.config-section-box,
.random-set-section,
.can-selection-section {
    background-color: #fff;
    padding: 25px 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.general-options-container .config-section:first-child h2,
.can-selection-section h2 {
    margin-top: 0;
}

.can-config {
    background-color: transparent;
    border: 1px solid var(--border-color);
    box-shadow: none;
    padding: 15px;
}

#randomize-set-button.is-loading {
    cursor: wait; 
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button-spinner {
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.reroll-slot-button {
    background-color: transparent;
    border: 2px solid var(--primary-color-darker);
    color: var(--primary-color-darker);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    opacity: 0.7;
}

.reroll-slot-button:hover {
    background-color: var(--primary-color-darker);
    color: white;
    transform: rotate(90deg) scale(1.1);
    opacity: 1;
}

.product-preview-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
    display: none;
}

.product-preview-container.layout-full {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.product-preview-container.layout-image-only {
    display: block;
    text-align: center;
}

.product-preview-container.layout-text-only {
    display: block;
}

.product-preview-image {
    max-width: 180px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: white;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-preview-image-wrapper {
    text-align: center; 
    margin-bottom: 15px;
}

.layout-full .product-preview-image {
    width: 120px;
    height: 120px;
}

.layout-image-only .product-preview-image {
    width: 150px;
    height: 150px;
    display: inline-block; 
}

.product-preview-image {
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: white;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-preview-details {
    text-align: left;
}

.product-preview-title {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
}

.layout-image-only .product-preview-title {
    display: none;
}

.product-preview-description {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-color-light);
    line-height: 1.5;
}

.sidebar-header {
    background-color: var(--light-gray);
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 1.2em;
    text-align: center;
    font-weight: 600;
}

.sidebar-subtitle {
    text-align: center;
    margin-top: -10px;
    margin-bottom: 25px;
    color: var(--text-color-light);
    font-size: 0.95em;
}

#instructions-sidebar .sidebar-content h5 {
    border-top: 2px solid var(--primary-color);
    padding-top: 20px;
    margin-top: 30px;
    font-size: 1.1em;
    color: var(--text-color);
}
#instructions-sidebar .sidebar-content ul.instruction-list li {
    background-color: #fdfdfd;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#instructions-sidebar .sidebar-content ul.instruction-list li:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

#instructions-sidebar .sidebar-content li strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05em;
    color: var(--text-color);
}

#instructions-sidebar .sidebar-content li p {
    margin: 0;
    font-size: 0.9em;
    color: var(--text-color-light);
    line-height: 1.6;
}

#instructions-sidebar .sidebar-content .instructions-final-note {
    margin-top: 30px;
    padding: 15px;
    background-color: #fff8e1;
    border: 1px solid #ffe5b9;
    border-radius: var(--border-radius);
    font-size: 0.9em;
    text-align: center;
}

#instructions-sidebar .sidebar-content ul.instruction-list li {
    background-color: white;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
}

#instructions-sidebar .sidebar-content ul.instruction-list li {
    background-color: white; 
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--medium-gray);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease-in-out;
    margin-bottom: 15px; 
}

#instructions-sidebar .sidebar-content ul.instruction-list li strong {
    color: var(--text-color);
}
#instructions-sidebar .sidebar-content ul.instruction-list li p {
    color: var(--text-color-light);
}

#instructions-sidebar .sidebar-content ul.instruction-list li.active-step {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-left-color: #90EE90;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(26, 94, 45, 0.2);
}

#instructions-sidebar .sidebar-content ul.instruction-list li.active-step strong {
    color: white;
}
#instructions-sidebar .sidebar-content ul.instruction-list li.active-step p {
    color: rgba(255, 255, 255, 0.9);
}

#products-list-container {
    margin-top: 20px;
}

.product-category-header {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}
.product-category-header:first-child {
    margin-top: 0;
}

.product-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.product-price-table th {
    background-color: var(--light-gray);
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}
.product-price-table th.price-col {
    text-align: right;
    width: 18%;
}

.product-price-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--medium-gray);
}

.product-price-table td.price-col {
    text-align: right;
    font-family: monospace;
    white-space: nowrap;
}

.product-price-table td.not-available {
    color: var(--dark-gray);
    text-align: center;
}

.product-price-table tbody tr:nth-child(even) {
    background-color: var(--light-gray);
}

.random-generator-card {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    box-shadow: none; 
    padding: 20px 25px;
}

.random-generator-card .toggler-header {
    text-align: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
}

.random-generator-card .toggler-header .toggler-arrow {
    transition: transform 0.3s ease-in-out;
}

.random-generator-card .toggler-header.open .toggler-arrow {
    transform: rotate(-180deg);
}

.random-generator-layout {
    display: flex;
    gap: 30px; 
}

.generator-categories-column {
    flex: 3; 
    min-width: 0; 
}

.generator-categories-column .category-toggle-buttons {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.generator-categories-column .separator {
    color: var(--border-color);
}

.generator-budget-column {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

.generator-budget-column .random-set-controls {
    margin-top: auto;
}

.category-pills-container { display: flex; flex-wrap: wrap; gap: 10px; max-height: 200px; overflow-y: auto; padding-right: 5px; }
.category-pill { display: block; }
.category-pill input[type="checkbox"] { display: none; }
.category-pill label { display: inline-block; padding: 8px 16px; background-color: #fff; border: 1px solid var(--border-color); border-radius: 20px; cursor: pointer; transition: all 0.2s ease-in-out; font-size: 0.9em; user-select: none; }
.category-pill label:hover { border-color: var(--primary-color); color: var(--primary-color); transform: translateY(-2px); }
.category-pill input[type="checkbox"]:checked + label { background-color: var(--primary-color); color: white; border-color: var(--primary-color); font-weight: 500; }
.generator-categories-column .link-style-button { background-color: #e9ecef; color: var(--text-color); border: 1px solid #dee2e6; border-radius: 20px; padding: 8px 16px; font-size: 0.9em; font-weight: 500; transition: all 0.2s ease-in-out; }
.generator-categories-column .link-style-button:hover { background-color: #dbe0e4; border-color: #c7ced4; color: var(--primary-color); }

.randomize-message {
    margin-top: 20px;
    text-align: center;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-size: 0.95em;
}
.randomize-message.success {
    background-color: var(--price-highlight-bg);
    border: 1px solid var(--primary-color);
    color: var(--primary-color-darker);
    font-weight: 500;
}
.randomize-message:not(.success):not(:empty) {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: var(--secondary-color);
}

.random-generator-card .collapsable-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin-top 0.4s ease-out;
}
.random-generator-card .collapsable-content.open {
    max-height: 800px;
    opacity: 1;
    margin-top: 0;
}

.randomize-blocker {
    background-color: #fff8e1;
    border: 1px solid #ffe5b9;
    color: #856404;
    padding: 25px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 1.05em;
    font-weight: 500;
    line-height: 1.6;
}

.main-config-panel {
    background-color: #ffffff; 
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
    padding: 35px 40px;
    overflow: hidden; 
}

.main-config-panel .config-section-box,
.main-config-panel .can-selection-section {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 45px;
}

.main-config-panel > *:last-child {
    margin-bottom: 0;
}

.main-config-panel h2 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color-light);
    margin-top: 0;
    margin-bottom: 20px;
}

.main-config-panel .random-generator-card {
    border-top: 1px solid var(--border-color); 
    border-bottom: 1px solid var(--border-color); 
    padding: 25px 0;
    margin: 45px 0;
    background-color: transparent;
    border-radius: 0;
}

.top-navigation-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    width: 100%;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.nav-button.nav-back-button {
    border: 1px solid var(--border-color); 
    background-color: #ffffff;
    color: var(--text-color-light);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.nav-button.nav-back-button:hover {
    border-color: var(--dark-gray);
    background-color: var(--light-gray);
    color: var(--text-color);
}

.nav-button.nav-contact-button {
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.nav-button.nav-contact-button:hover {
    background-color: var(--primary-color-darker);
    border-color: var(--primary-color-darker);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.top-navigation-bar h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}
body.dark-mode .top-navigation-bar h1 {
    color: var(--text-color);
}

.theme-toggle-button {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-right: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.theme-toggle-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1) rotate(15deg);
}

.theme-toggle-button svg {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.theme-toggle-button .icon-moon {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

.theme-toggle-button .icon-sun {
    transform: translateY(-150%) rotate(180deg);
    opacity: 0;
}

.theme-toggle-button .icon-sun {
    transform: translateY(100%);
    opacity: 0;
}
.theme-toggle-button .icon-moon {
    transform: translateY(0);
    opacity: 1;
}

body.dark-mode .theme-toggle-button .icon-sun {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

body.dark-mode .theme-toggle-button .icon-moon {
    transform: translateY(150%) rotate(180deg);
    opacity: 0;
}

body.dark-mode .main-config-panel {
    background-color: var(--medium-gray);
    border-color: var(--border-color);
}

body.dark-mode .can-config,
body.dark-mode .can-config select {
    background-color: #2f2f2f;
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-mode .option-button {
    background-color: transparent; 
    border-color: #555;
}

body.dark-mode .option-button .button-text-content {
    color: var(--text-color-light);
}

body.dark-mode .option-button .button-text-content,
body.dark-mode .option-button .button-details {
    color: var(--dark-gray);
}

body.dark-mode .option-button:hover {
    background-color: var(--button-hover-bg);
    border-color: var(--primary-color-darker);
}

body.dark-mode .option-button:hover .button-text-content,
body.dark-mode .option-button:hover .button-details {
    color: #FFFFFF;
}

body.dark-mode .option-button.active .button-text-content,
body.dark-mode .option-button.active .button-details {
    color: #121212;
}

body.dark-mode .option-button.active:hover {
    background-color: #EAEAEA;
    border-color: #EAEAEA;
}

body.dark-mode .option-button.active:hover .button-text-content,
body.dark-mode .option-button.active:hover .button-details {
    color: #000000;
}

body.dark-mode .option-button.active:hover .button-text-content {
    color: #000000;
}

body.dark-mode .option-button.active .button-text-content {
    color: #000000;
}

body.dark-mode .option-button.active .button-details {
    color: #000000 
}

body.dark-mode .option-button.active:hover .button-details {
    color: #000000;
}

body.dark-mode .reset-button-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
body.dark-mode .reset-button-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

body.dark-mode #price-info-placeholder {
    background-color: var(--price-info-placeholder-bg);
    border-color: var(--price-info-placeholder-border);
    color: var(--price-info-placeholder-text);
}


body.dark-mode #instructions-sidebar .sidebar-content ul.instruction-list li:not(.active-step) strong {
    color: #212529; 
}

body.dark-mode #instructions-sidebar .sidebar-content ul.instruction-list li:not(.active-step) p {
    color: #495057; 
}

body.dark-mode .nav-button.nav-contact-button {
    background-color: #EAEAEA;
    border-color: #EAEAEA;
    color: #121212;
}
body.dark-mode .nav-button.nav-back-button {
    background-color: #fff;
    color: #495057;
}
body.dark-mode .nav-button.nav-back-button:hover {
    background-color: #383838;
    border-color: #383838;
    color: #EAEAEA;
}

body.dark-mode .option-button:hover,
body.dark-mode .option-button.active {
    background-color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    color: #121212 !important;
    font-weight: 600;
}

body.dark-mode .option-button:hover .button-text-content,
body.dark-mode .option-button.active .button-text-content {
    color: #121212 !important; 
}

body.dark-mode .option-button:hover .button-details,
body.dark-mode .option-button.active .button-details {
    color: #333333 !important;
}

body.dark-mode .option-button.size-button-visual:hover::before,
body.dark-mode .option-button.size-button-visual.active::before {
    background-color: #a0a0a0;
    border-color: #6c757d;
}

body.dark-mode #generate-link-button.action-button,
body.dark-mode #randomize-set-button.action-button {
    background-color: #EAEAEA;
    border-color: #EAEAEA;
    color: #121212;
}

body.dark-mode #instructions-sidebar .sidebar-content ul.instruction-list li:not(.active-step) {
    background-color: #fff;
    color: #212529;
}
body.dark-mode #instructions-sidebar .sidebar-content ul.instruction-list li:not(.active-step) strong {
    color: #212529;
}
body.dark-mode #instructions-sidebar .sidebar-content ul.instruction-list li:not(.active-step) p {
    color: #495057;
}
body.dark-mode #instructions-sidebar .sidebar-content ul.instruction-list li.active-step {
    background-color: #EAEAEA !important;
}
body.dark-mode #instructions-sidebar .sidebar-content ul.instruction-list li.active-step strong,
body.dark-mode #instructions-sidebar .sidebar-content ul.instruction-list li.active-step p {
    color: #121212 !important;
}

body.dark-mode .inspiration-card {
    background-color: #fff;
}
body.dark-mode .inspiration-card h5,
body.dark-mode .inspiration-card p {
    color: #212529;
}

body.dark-mode #price-info-placeholder {
    background-color: var(--price-info-placeholder-bg) !important;
    border-color: var(--price-info-placeholder-border) !important;
    color: var(--price-info-placeholder-text) !important;
}
body.dark-mode .price-summary .total-price,
body.dark-mode .price-summary .total-order-price {
    background-color: #e8f5e9;
    color: #1A5E2D;
}
body.dark-mode .price-summary .total-price span:last-child,
body.dark-mode .price-summary .total-order-price .price-value {
    color: #004b23;
}
body.dark-mode .price-summary .total-order-price .quantity-details {
    color: #1A5E2D !important;
    font-weight: 500;
}
body.dark-mode #instructions-sidebar .instructions-final-note {
    color: #856404;
}

body.dark-mode .modal-content {
    background-color: white;
}
body.dark-mode .modal-content h4,
body.dark-mode .modal-content p {
    color: #212529;
}
body.dark-mode .confirm-modal-buttons .cancel-button {
    background-color: transparent;
    color: #1A5E2D;
    border: 1px solid #1A5E2D;
}
body.dark-mode .confirm-modal-buttons .cancel-button:hover {
    background-color: #e8f5e9;
}

body.dark-mode .category-pill label {
    background-color: #fff;
    color: #333;
}
body.dark-mode .category-pill input[type="checkbox"]:checked + label {
    background-color: #1A5E2D;
    border-color: #4CAF50;
    color: white;
    font-weight: 500;
}

body.dark-mode .price-input-wrapper {
    background-color: #fff;
}
body.dark-mode .price-input-wrapper input[type="text"],
body.dark-mode .price-input-wrapper .price-unit {
    color: #212529;
}
body.dark-mode .price-input-wrapper input::placeholder {
    color: #6c757d;
}

body.dark-mode .price-summary .total-price span:first-child,
body.dark-mode .price-summary .total-order-price .label-main-text {
    color: #004b23 !important;
}

body.dark-mode .price-summary .total-order-price .quantity-details {
    color: #004b23 !important;
}

body.dark-mode .price-summary .total-price span:first-child,
body.dark-mode .price-summary .total-order-price .label-main-text {
    color: #1A5E2D !important;
}

body.dark-mode .generator-categories-column .link-style-button {
    background-color: #2f2f2f;
    color: #EAEAEA;
    border-color: #383838;
}

body.dark-mode .price-summary .total-price span:first-child,
body.dark-mode .price-summary .total-order-price .label-main-text {
    color: #004b23 !important;
}

body.dark-mode #generated-link-output {
    background-color: #2f2f2f; 
    color: #EAEAEA;
    border-color: #383838;
}

body.dark-mode #order-quantity {
    color: #004b23 !important;
    font-weight: 500;
}

#confirm-leave-modal .modal-content {
    text-align: center; max-width: 550px; padding: 30px;
}
#confirm-leave-modal .modal-content h4 {
    border-bottom: none; margin-bottom: 10px; font-size: 1.5rem;
}
#confirm-leave-modal .modal-content p {
    color: var(--text-color-light); line-height: 1.6; margin: 0 auto 25px auto; max-width: 95%;
}
#confirm-leave-modal .modal-content p strong {
    color: var(--text-color); display: block; margin-top: 25px;
}

.share-link-section {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.generated-link-container {
    max-width: 90%;
    margin: 0 auto 15px auto;
}
#generated-link-output,
#generated-link-output-modal {
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    color: var(--primary-color-darker);
    font-family: monospace;
    font-size: 0.9em;
    word-break: break-all;
}

.share-link-copy-row,
.copy-message-row {
    text-align: center;
}
#copy-link-button,
#copy-link-button-modal {
    padding: 8px 16px;
    background-color: var(--dark-gray);
    border-color: var(--dark-gray);
}

#confirm-leave-modal .confirm-modal-buttons {
    margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border-color);
}

body.dark-mode .share-link-section { background-color: #121212; }
body.dark-mode #generated-link-output,
body.dark-mode #generated-link-output-modal {
    background-color: #2f2f2f;
    border-color: #383838;
    color: var(--primary-color);
}
body.dark-mode #copy-link-button,
body.dark-mode #copy-link-button-modal {
    background-color: #5a6268; border-color: #5a6268; color: #EAEAEA;
}

#confirm-leave-modal .confirm-modal-buttons {
    justify-content: center;
}

.copy-message-row {
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

p.copy-link-message {
    display: inline-block;
    padding: 6px 12px;
    background-color: #e8f5e9;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--primary-color-darker);
    font-size: 0.9em;
    font-weight: 500;
}

body.dark-mode p.copy-link-message {
    background-color: #1e3c23;
    border-color: #4caf50;
    color: #c8e6c9;
}

#share-link-section-modal #copy-link-button-modal {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    margin: 0 auto;
}

#share-link-section-modal #copy-link-button-modal:hover {
    background-color: var(--primary-color-darker) !important;
    border-color: var(--primary-color-darker) !important;
}

body.dark-mode #share-link-section-modal #copy-link-button-modal {
    background-color: #EAEAEA !important;
    border-color: #EAEAEA !important;
    color: #121212 !important;
}

#share-link-section .copy-message-row {
    text-align: center;
}

#share-link-section #generated-link-output {
    text-align: center;
}

#share-link-section #copy-link-message {
    width: 100%;                    
    text-align: center !important;  
}

body.dark-mode #confirm-leave-modal .modal-content h4,
body.dark-mode #confirm-leave-modal .modal-content p {
    color: var(--text-color-light, #495057);
}

body.dark-mode #confirm-leave-modal .modal-content p strong {
    color: var(--text-color, #212529);
}

body.dark-mode #confirm-leave-modal #share-link-section-modal {
    background-color: #f8f9fa; 
    border-color: #dee2e6 !important;
}

body.dark-mode #confirm-leave-modal #generated-link-output-modal {
    background-color: white;
    border-color: #ccc;
    color: #004b23;
}

body.dark-mode #confirm-leave-modal #copy-link-button-modal {
    background-color: #1A5E2D !important;
    border-color: #1A5E2D !important;
    color: white !important;
}
body.dark-mode #confirm-leave-modal #copy-link-button-modal:hover {
    background-color: #004b23 !important;
    border-color: #004b23 !important;
}

body.dark-mode #confirm-leave-modal .confirm-button {
    background-color: #c82333;
    border-color: #c82333;
    color: white;
}
body.dark-mode #confirm-leave-modal .confirm-button:hover {
    background-color: #a71d2a;
    border-color: #a71d2a;
}

body.dark-mode #confirm-leave-modal .cancel-button {
    background-color: transparent;
    border-color: #1A5E2D;
    color: #1A5E2D;
}
body.dark-mode #confirm-leave-modal .cancel-button:hover {
    background-color: #1A5E2D;
    color: white;
}

body.dark-mode #confirm-leave-modal .modal-content {
    background-color: var(--medium-gray);
    border: 1px solid var(--border-color);
}

body.dark-mode #confirm-leave-modal .modal-content h4,
body.dark-mode #confirm-leave-modal .modal-content p,
body.dark-mode #confirm-leave-modal .modal-content p strong {
    color: var(--text-color) !important;
}

body.dark-mode #confirm-leave-modal #share-link-section-modal {
    background-color: var(--light-gray);
    border-color: var(--border-color) !important;
}

body.dark-mode #confirm-leave-modal #generated-link-output-modal {
    background-color: #2f2f2f;
    border-color: var(--border-color);
    color: var(--text-color);
}
body.dark-mode #confirm-leave-modal #copy-link-button-modal {
    background-color: #EAEAEA !important;
    border-color: #EAEAEA !important;
    color: #121212 !important;
}
body.dark-mode #confirm-leave-modal .confirm-button {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
}
body.dark-mode #confirm-leave-modal .cancel-button {
    background-color: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}
body.dark-mode #confirm-leave-modal .cancel-button:hover {
    background-color: var(--text-color);
    color: var(--medium-gray);
}

.custom-tooltip {
    background-color: #212529; 
    color: white;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1.4;
    z-index: 1010;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.action-button-main {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}
.action-button-main:hover {
    background-color: var(--primary-color-darker);
    transform: scale(1.02);
}

.price-disclaimer {
    font-size: 0.8em;
    color: var(--text-color-light);
    text-align: center;
    line-height: 1.5;
    opacity: 0.8;
}

.inquiry-modal-content {
    max-width: 650px;
    text-align: left;
}
.inquiry-modal-content h4 {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.modal-subtitle {
    text-align: center;
    color: var(--text-color-light);
    margin-top: -10px;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.inquiry-summary {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    font-size: 0.9em;
}

.inquiry-options fieldset {
    border: none;
    padding: 0 0 15px 0;
    margin: 0 0 15px 0;
    border-bottom: 1px dashed var(--border-color);
}
.inquiry-options legend {
    font-weight: 600;
    padding: 0;
    margin-bottom: 10px;
    font-size: 1rem;
}
.radio-group label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}
.radio-group input[type="radio"] {
    margin-right: 8px;
    vertical-align: middle;
}

.inquiry-actions {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.action-button-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}
.action-button-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

#ready-design-choices {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.design-choice label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 10px;
    transition: all 0.2s ease;
}
.design-choice img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 5px;
}
.design-choice input[type="radio"] { display: none; }
.design-choice input[type="radio"]:checked + img + span { font-weight: bold; }
.design-choice label:hover {
    background-color: rgba(0,0,0,0.05);
}
.design-choice input[type="radio"]:checked ~ img {
    border: 2px solid var(--primary-color);
}

#selected-products-list-modal li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dotted var(--border-color);
}
#selected-products-list-modal li:last-child {
    border-bottom: none;
}
#selected-products-list-modal .product-name {
    flex-grow: 1;
    padding-right: 15px;
}
#selected-products-list-modal .product-price {
    flex-shrink: 0;
    white-space: nowrap;
}

#inquiry-summary-html-content {
    margin-bottom: 30px;
}

.designs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}
.design-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #fff;
    text-align: center;
}

.design-card img {
    width: 100%;     
    height: 220px; 
    display: block;  
    object-fit: cover;
    object-position: center;
}

.design-card h5 {
    padding: 15px;
    margin: 0;
    font-weight: 600;
}
body.dark-mode .design-card {
    background-color: var(--medium-gray);
}

.reset-button-secondary {
    order: 2;
}

body.dark-mode .action-button-main {
    background-color: var(--primary-color);
    color: #121212; 
}

.image-modal-content {
    background: none;
    box-shadow: none;
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
}
#image-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.image-modal-content .modal-close-button {
    color: white;
    text-shadow: 0 0 5px black;
    font-size: 2.5rem;
}

.can-selection-section {
    display: grid;
    grid-template-areas:
        "header header"
        "progress progress";
    grid-template-columns: 1fr auto;
    gap: 15px;
}

.can-selection-section h2 {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin: 0;
}

body.dark-mode #inquiry-modal .price-summary,
body.dark-mode #inquiry-modal .price-summary h3,
body.dark-mode #inquiry-modal .price-summary h4 {
    color: #1A5E2D;
}
body.dark-mode #inquiry-modal .price-summary p,
body.dark-mode #inquiry-modal .price-summary li {
    color: #212529;
}
body.dark-mode #inquiry-modal .price-summary p span:last-child {
    font-weight: 600;
}
body.dark-mode #inquiry-modal .price-summary hr {
    border-color: #a5d6a7;
}

body.dark-mode #inquiry-modal .price-summary .total-price,
body.dark-mode #inquiry-modal .price-summary .total-order-price {
    color: #004b23;
}

.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.image-viewer-overlay.visible {
    opacity: 1;
}

#image-viewer-img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
}

#image-viewer-overlay .image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
#image-viewer-overlay .image-viewer-close:hover {
    background-color: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

body.dark-mode .inquiry-modal-content {
    background-color: var(--medium-gray); 
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
body.dark-mode .inquiry-modal-content h4,
body.dark-mode .inquiry-modal-content .modal-subtitle {
    color: var(--text-color);
}

body.dark-mode #inquiry-summary-html-content {
    background-color: var(--light-gray);
    border-color: var(--border-color);
}
body.dark-mode #inquiry-summary-html-content h3,
body.dark-mode #inquiry-summary-html-content h4,
body.dark-mode #inquiry-summary-html-content p,
body.dark-mode #inquiry-summary-html-content li {
    color: var(--text-color) !important;
}
body.dark-mode #inquiry-summary-html-content hr {
    border-color: var(--border-color);
}

body.dark-mode #inquiry-summary-html-content .total-price,
body.dark-mode #inquiry-summary-html-content .total-order-price {
    background-color: rgba(234, 234, 234, 0.1);
}

body.dark-mode .inquiry-options fieldset {
    border-bottom-color: var(--border-color);
}
body.dark-mode .inquiry-options legend,
body.dark-mode .inquiry-options label {
    color: var(--text-color);
}

body.dark-mode #ready-design-choices {
    background-color: rgba(0,0,0,0.2);
    border-radius: var(--border-radius);
    padding: 10px;
}

body.dark-mode #send-inquiry-mailto-button {
    background-color: var(--primary-color);
    color: #121212;
}

body.dark-mode #copy-inquiry-button {
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}
body.dark-mode #copy-inquiry-button:hover {
    color: #121212;
    background-color: var(--text-color-light);
}

body.dark-mode #inquiry-summary-html-content .total-price,
body.dark-mode #inquiry-summary-html-content .total-order-price {
    background-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #inquiry-summary-html-content .total-price span:first-child,
body.dark-mode #inquiry-summary-html-content .total-order-price .label-main-text {
    color: var(--text-color);
}
body.dark-mode #inquiry-summary-html-content .total-price,
body.dark-mode #inquiry-summary-html-content .total-order-price {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode #inquiry-summary-html-content .total-price span:first-child,
body.dark-mode #inquiry-summary-html-content .total-order-price .label-main-text {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode #inquiry-summary-html-content .total-price span:last-child,
body.dark-mode #inquiry-summary-html-content .total-order-price .price-value {
    color: #FFFFFF !important; 
    font-weight: 700;
}

body.dark-mode #inquiry-summary-html-content .quantity-details {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode .sidebar-nav a {
    color: var(--text-color);
    border-color: var(--border-color);
}
body.dark-mode .sidebar-nav a:hover {
    background-color: #383838;
}
body.dark-mode .sidebar-nav a.active {
    background-color: var(--primary-color);
    color: #121212;
}

body.sidebar-open-on-mobile::after {
    content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5); z-index: 1009;
}

body.dark-mode .top-navigation-bar h1 {
    color: var(--text-color);
}

.reset-button-secondary {
    flex-shrink: 0; 
}

.progress-bar-container {
    width: 100%;
    margin-bottom: 30px;
}

.sidebar-accordion {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: #fff;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: block;
    padding: 16px 20px 16px 25px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.accordion-header::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--text-color-light);
}

.accordion-item:not(.is-open):hover .accordion-header {
    background-color: var(--light-gray);
}

.accordion-item.is-open > .accordion-header {
    font-weight: 600;
    color: var(--primary-color);
}
.accordion-item.is-open > .accordion-header::after {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-color);
}
.accordion-item.is-open::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 2;
}

.accordion-content {
    background-color: #fdfdfd;
    padding: 0 25px 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding-top 0.35s ease-out, padding-bottom 0.35s ease-out;
}

.accordion-item.is-open .accordion-content {
    padding-top: 20px;
    padding-bottom: 25px;
}

#instructions-content .instruction-list {
    list-style-type: none;
    padding-left: 0;
}

.top-navigation-bar h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
body.dark-mode .top-navigation-bar h1 {
    color: var(--text-color);
}

.nav-button {}
.theme-toggle-button {}

body.dark-mode .top-navigation-bar h1,

.top-navigation-bar h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

body.dark-mode .top-navigation-bar h1 {
    color: var(--text-color);
}

.nav-button-icon { display: none; }

header.top-navigation-bar {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 0 30px; 
    box-sizing: border-box;
}

.top-navigation-content {
    display: flex;
    grid-template-columns: auto 1fr auto;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 20px; 
}

.nav-section-left, .nav-section-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo-link { display: inline-flex; }
.nav-logo-image { height: 80px}

.top-navigation-bar h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.mobile-only-button,
.nav-button-icon {
    display: none;
}

body.dark-mode header.top-navigation-bar { background-color: var(--medium-gray); }
body.dark-mode .top-navigation-bar h1, 
body.dark-mode .nav-section-left::after { color: var(--text-color); }

.main-content-area {
    display: grid;
    grid-template-columns: 1fr 3fr 1.3fr; 
    grid-template-areas: "instructions configuration summary";
    gap: 30px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 110px 30px 40px;
}

.left-sidebar { 
    grid-area: instructions; 
    min-width: 0;
}
.config-column { 
    grid-area: configuration; 
    min-width: 0;
}
.summary-sidebar { 
    grid-area: summary; 
    min-width: 0;
}

#instructions-sidebar { grid-area: instructions; }
#config-column { grid-area: configuration; }
#summary-sidebar { grid-area: summary; }

.config-column { min-width: 0; }
.left-sidebar, .summary-sidebar, .config-column { margin: 0; }

.left-sidebar.is-open { transform: translateX(0); }
body.sidebar-open-on-mobile::after {
    content: ''; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1009;
}

body.dark-mode .top-navigation-bar h1,

body.dark-mode .left-sidebar {
    background-color: var(--medium-gray);
}

.nav-logo-image.logo-white {
    display: none;
}
.nav-logo-image.logo-dark {
    display: block;
}

body.dark-mode .nav-logo-image.logo-dark {
    display: none;
}
body.dark-mode .nav-logo-image.logo-white {
    display: block;
}

.nav-section-left.desktop-only-flex, 
.nav-section-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-mobile-header.mobile-only-flex {
    display: none;
}
.mobile-header-title {
    font-size: 1.4rem; 
    font-weight: 600; 
    color: var(--primary-color);
    margin: 0 0 0 15px;
}

@media (max-width: 1200px) {
    .top-navigation-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        padding: 0;
    }
    
    .nav-mobile-header    { order: 1; }
    .nav-section-left     { order: 2; }
    .nav-section-center   { order: 3; flex-grow: 1; text-align: center; }
    .nav-section-right    { order: 4; }

    .nav-mobile-header.mobile-only-flex {
        display: flex;
    }
    .mobile-only-button {
        display: inline-flex;
    }

    .nav-section-left {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .nav-logo-link {
        order: 2;
    }
    .nav-button.nav-back-button {
        order: 1; 
    }

    .nav-button-text-full {
        display: inline;
    }

    .mobile-header-title { 
        display: none;
    }
    .nav-button-icon {
        display: none;
    }

    header.top-navigation-bar {
        height: 70px;
        padding: 0 15px;
    }
    .nav-logo-image {
        height: 80px; 
    }
    .top-navigation-bar h1 {
        font-size: 1.25rem;
    }

    .left-sidebar {
        display: transform; 
    }
    .main-content-area {
        grid-template-areas: "configuration summary"; 
        grid-template-columns: 2fr 1fr;
        gap: 25px;
        padding-top: 90px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .can-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 750px) {
    .top-navigation-content {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 10px;
    }
    .nav-section-center,
    .mobile-header-title,  
    .nav-button-icon {
        display: none;
    }

    .nav-mobile-header { display: flex; }
    .nav-section-left {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-right: auto;
    }

    .nav-button.nav-back-button {
        display: inline-flex;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    .nav-button-text-full {
        display: inline;
    }
    
    .nav-logo-link { display: inline-flex; }
    .nav-logo-image { height: 50px; }
    .page-title-mobile { display: none; }
    .main-content-area {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding-top: 90px;
    }
    .config-column { order: 2; }
    .summary-sidebar { order: 1; }
    .button-group, .quantity-button-group {
        grid-template-columns: 1fr;
    }
}
.page-title-mobile {
    display: none;
    text-align: center;
    margin-bottom: 20px;
}
.page-title-mobile h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}
body.dark-mode .page-title-mobile h1 {
    color: var(--text-color);
}

@media (max-width: 1200px) {
    .left-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background-color: #fff;
        z-index: 1010;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .left-sidebar.is-open {
        transform: translateX(0);
    }

    body.sidebar-open-on-mobile::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1009;
    }
    
    body.dark-mode .left-sidebar {
        background-color: var(--medium-gray);
    }
}

body.dark-mode .sidebar-accordion {
    background-color: var(--medium-gray) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .accordion-item .accordion-header {
    color: var(--text-color) !important;
}

body.dark-mode .accordion-item .accordion-header::after {
    color: var(--text-color-light) !important;
}

body.dark-mode .accordion-item:not(.is-open):hover .accordion-header {
    background-color: #2a2a2a !important;
}

body.dark-mode .accordion-item.is-open > .accordion-header {
    background-color: var(--primary-color) !important;
    color: #121212 !important;
}
body.dark-mode .accordion-item.is-open > .accordion-header::after {
    color: #121212 !important;
}

body.dark-mode .accordion-item.is-open::before {
    background-color: var(--primary-color) !important;
}

body.dark-mode .accordion-content {
    background-color: var(--medium-gray) !important;
    color: var(--text-color-light) !important;
}
body.dark-mode .accordion-content strong, 
body.dark-mode .accordion-content p,
body.dark-mode .accordion-content .sidebar-subtitle {
    color: var(--text-color) !important;
}

body.dark-mode #show-pricelist-modal-button {
    background-color: var(--primary-color) !important;
    color: #121212 !important;
}

body.dark-mode .price-summary {
    background-color: #192a20 !important;
    border-color: #1A5E2D !important;
}

body.dark-mode .price-summary h3,
body.dark-mode .price-summary h4,
body.dark-mode .price-summary p,
body.dark-mode .price-summary li,
body.dark-mode .price-summary span,
body.dark-mode .price-summary .price-note,
body.dark-mode .price-summary .price-disclaimer {
    color: #c8e6c9 !important;
}
body.dark-mode .price-summary hr {
    border-color: rgba(144, 238, 144, 0.2) !important;
}

body.dark-mode .price-summary strong,
body.dark-mode .price-summary span[id*="cost"],
body.dark-mode .price-summary span[id*="price"],
body.dark-mode .price-summary .product-price {
    color: #ffffff !important;
    font-weight: 600 !important;
}

body.dark-mode .price-summary .total-price,
body.dark-mode .price-summary .total-order-price {
    background-color: rgba(46, 125, 50, 0.3) !important;
}

body.dark-mode .price-summary .total-order-price .label-main-text,
body.dark-mode .price-summary .total-order-price .quantity-details {
     color: #a5d6a7 !important;
}

body.dark-mode #send-inquiry-button {
    background-color: var(--primary-color) !important;
    color: #121212 !important;
}

body.dark-mode .inspiration-card {
    background-color: var(--medium-gray) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .inspiration-card h5 {
    color: var(--text-color) !important;
}

body.dark-mode .inspiration-card p {
    color: var(--text-color-light) !important;
}

body.dark-mode .design-card {
    background-color: var(--medium-gray) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .design-card h5 {
     color: var(--text-color) !important;
}

.main-config-panel .config-section > h2 {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

.progress-reset-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.progress-bar-container {
    width: 100%;
    text-align: center;
}

.progress-text {
    margin-top: 8px;
}

#show-pricelist-modal-button {
    width: 100%;
}

.pricelist-modal-content {
    width: 90%;
    max-width: 800px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

#modal-products-list-container {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 15px;
    margin-right: -15px;
}

.pricelist-modal-content .product-category-header {
    margin-top: 25px;
}
.pricelist-modal-content .product-category-header:first-of-type {
    margin-top: 0;
}

.pricelist-modal-content .table-responsive-wrapper {
    overflow-x: visible;
}
.pricelist-modal-content .product-price-table {
    min-width: 100%;
}

body.dark-mode .pricelist-modal-content {
    background-color: var(--medium-gray);
    border: 1px solid var(--border-color);
}
body.dark-mode .pricelist-modal-content h4,
body.dark-mode .pricelist-modal-content .modal-subtitle {
    color: var(--text-color);
    border-bottom-color: var(--border-color);
}

body.dark-mode .product-category-header {
    color: var(--text-color);
    border-bottom-color: var(--primary-color);
}
body.dark-mode .product-price-table th {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color-light);
    border-bottom-color: var(--border-color);
}

body.dark-mode .product-price-table td {
    border-bottom-color: var(--border-color);
}
body.dark-mode .product-price-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.2);
}
body.dark-mode .product-price-table td,
body.dark-mode .product-price-table td.not-available {
    color: var(--text-color-light);
}

body.dark-mode .product-price-table td:first-child,
body.dark-mode .product-price-table td.price-col {
    color: var(--text-color);
    font-weight: 500;
}

body.dark-mode #modal-products-list-container::-webkit-scrollbar-track {
    background: #2a2a2a;
}
body.dark-mode #modal-products-list-container::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 6px;
    border: 3px solid #2a2a2a;
}

body.sidebar-open-on-mobile .left-sidebar {
    transform: translateX(0);
}

body.sidebar-open-on-mobile::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1009;
    cursor: pointer;
}

body.dark-mode .left-sidebar {
    background-color: var(--medium-gray);
}

body.dark-mode .price-summary,
body.dark-mode .price-summary p,
body.dark-mode .price-summary span,
body.dark-mode .price-summary .price-note,
body.dark-mode .price-summary .price-disclaimer {
    color: #c8e6c9 !important;
}

body.dark-mode .price-summary strong,
body.dark-mode .price-summary span[id*="cost"],
body.dark-mode .price-summary span[id*="price"],
body.dark-mode .price-summary .total-order-price .price-value {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

body.dark-mode #order-quantity {
    color: #c8e6c9 !important; 
}

body.dark-mode #price-summary * {
    color: #c8e6c9 !important;
}

body.dark-mode #price-summary strong,
body.dark-mode #price-summary .product-price,
body.dark-mode #price-summary span[id*="cost"],
body.dark-mode #price-summary span[id*="price"],
body.dark-mode #price-summary .price-value {
    color: #FFFFFF !important;
}

#price-summary,
#price-info-placeholder {
    margin-top: 30px; 
}

.summary-options-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    font-size: 0.9rem;
}
.summary-options-section .option-label {
    color: var(--dark-gray);
}
.radio-button-group {
    display: flex;
    gap: 20px;
    font-weight: 700;
    color: var(--text-color);
}
.radio-button-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.radio-button-group input[type="radio"] {
    accent-color: var(--primary-color);
}

fieldset.error legend {
    color: var(--secondary-color);
}
fieldset.error {
    border-left: 3px solid var(--secondary-color) !important;
    padding-left: 15px;
    transition: all 0.2s;
}

.validation-message {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-top: 15px;
    font-weight: 500;
}

.main-page-footer {
    text-align: center;
    margin-top: auto;
    padding: 25px 20px;
    border-top: 1px solid var(--border-color, #dee2e6); 
    font-size: 0.88em;
    color: var(--dark-gray, #6c757d);
    background-color: #fff;
}

body.dark-mode footer.main-page-footer {
    background-color: #121212;
    color: #888;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    border-top: 1px solid #2a2a2a;
}