body {
    font-family: Arial, sans-serif;
    background: #f7f6f2;
    margin: 0;
    padding: 0;
    font-size: 18px;
}

header {
    background: #b22222;
    color: #fff;
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.logo {
    height: 75px;
}

h1 {
    font-size: 2.2rem;
}

#currentLine {
    transition: opacity 0.3s ease;
}

.line-switch {
    display: flex;
    gap: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.line-switch:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

.line-switch-bg {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 50px;
    height: 32px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.line-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 50px;
    position: relative;
    z-index: 2;
}

.line-btn:hover {
    color: white;
}

.line-btn.active {
    color: #b22222;
}

.line-btn.active:hover {
    color: #8B0000;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2.5rem;
}

.form-title {
    color: #b22222;
    margin: 0 0 1rem 0;
    font-size: 1.6rem;
    border-bottom: 1px solid #f0e0d0;
    padding-bottom: 1rem;
}

.creme-selector {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.creme-selector select {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: 2px solid #d2691e;
    background-color: #fff;
    font-size: 1.2rem;

    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2691e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1.2em;
    padding-right: 3rem;
}

.creme-selector select:focus {
    outline: none;
    border-color: #b22222;
    box-shadow: 0 0 0 2px rgba(178, 34, 34, 0.2);
}

/* Layout voor biscoff app */
.biscoff-flex {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 25px;
}

.biscoff-form,
.resultaten-box {
    background: #fff7e6;
    border-radius: 22px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 2.2rem 2.5rem 2rem 2.5rem;
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin: 0 20px;
    flex: 1;
    max-width: 380px;

    /* Set a fixed minimum height for both */
}

.resultaten-box {
    background: #fff;
    border-left: 5px solid #b22222;
}

.info-box {
    background: #e8f4f8;
    border: 1px solid #b8dce8;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 10px 0;
    text-align: center;
}

.line-info {
    font-size: 14px;
    color: #2c5aa0;
    font-weight: 500;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #b22222;
}

.result-item label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.result-value {
    font-size: 14px;
    font-weight: bold;
    color: #2c5aa0;
}

.result-value.time-value {
    font-family: 'Courier New', monospace;
    background: #e8f4f8;
    padding: 2px 6px;
    border-radius: 4px;
}

.result-value.warning {
    color: #e74c3c !important;
    background: #ffeaea !important;
}

.creme-tot-box {
    background: #b22222;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: white;
    text-align: center;
}

.creme-tot-box h3 {
    margin: 0;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.creme-tot-time {
    font-size: 2.2rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    min-width: 120px;
}

.tank-big-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    margin: 0 10px;
}

.tank-info-small {
    margin-top: 10px;
    padding: 5px 10px;
    background: rgba(178, 34, 34, 0.1);
    border: 1px solid rgba(178, 34, 34, 0.3);
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}

.tank-info-label {
    color: #666;
    font-weight: 500;
    display: block;
}

.tank-info-time {
    color: #b22222;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    display: block;
    margin-top: 2px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 1.15rem;
    font-weight: 500;
}

.form-group .hint {
    display: block;
    color: #777;
    font-size: 0.9rem;
    margin-top: 4px;
    font-style: italic;
}

.tanks-container {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
}

.tank-big-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.resultaten-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 1.8rem 2rem;
    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: flex-start;
    border-left: 4px solid #b22222;
}

.resultaten-box h3 {
    color: #b22222;
    margin: 0 0 0.8rem 0;
    font-size: 1.3rem;
    border-bottom: 1px solid #f0e0d0;
    padding-bottom: 0.8rem;
}

#resultaten {
    font-size: 1.1rem;
    color: #333;
}

.tank-label {
    margin-bottom: 0.8rem;
    font-weight: bold;
    font-size: 1.5rem;
}

.tank-visual {
    border: 3px solid #b22222;
    background: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.tank-premix,
.tank-beluchting {
    width: 300px;
    height: 450px;
    border-width: 6px;
    border-radius: 32px 32px 24px 24px;
}

.tank-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: height 0.4s, background 0.4s;
    border-top: 4px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 -5px 12px rgba(0, 0, 0, 0.08) inset;
    animation: wave-movement 1.5s ease-in-out infinite alternate;
    transform-origin: center bottom;
}

.tank-fill::before,
.tank-fill::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 30px;
    background: inherit;
    left: -10%;
    border-radius: 50%;
    z-index: 1;
}

.tank-fill::before {
    top: -15px;
    animation: wave-small 3s ease-in-out infinite;
    opacity: 0.8;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
}

.tank-fill::after {
    top: -7px;
    animation: wave-big 2.5s ease-in-out 0.3s infinite;
    opacity: 0.9;
}

@keyframes wave-small {

    0%,
    100% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }
}

@keyframes wave-big {

    0%,
    100% {
        transform: translateX(15px);
    }

    50% {
        transform: translateX(-15px);
    }
}

@keyframes wave-movement {
    0% {
        transform: scaleY(0.97);
    }

    100% {
        transform: scaleY(1.03);
    }
}

/* Verwijder SVG code die performance verslechtert */
svg {
    display: none;
}

/* Kleur per crème type */
.tank-biscoff {
    background: linear-gradient(0deg, #b85a13 0%, #d2691e 60%, #fff7e6 100%);
}

.tank-vanille {
    background: linear-gradient(0deg, #ffe9b3 0%, #ffe9b3 60%, #fffbe6 100%);
}

.tank-melkchocolade {
    background: linear-gradient(0deg, #7b4a1e 0%, #a97c50 60%, #e6d3b3 100%);
}

input[type="number"],
input[type="text"] {
    width: 95%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1.15rem;
}

.input-with-button {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-button input {
    flex: 1;
}

.action-button {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.action-button:hover {
    transform: translateY(-1px);
}

.action-button:active {
    transform: translateY(1px);
}

.time-button {
    background-color: #4a90e2;
    color: white;
}

.time-button:hover {
    background-color: #3a80d2;
}

.reset-button {
    background-color: #e74c3c;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
}

.reset-button:hover {
    background-color: #d73c2c;
}

.reset-button:hover {
    background-color: #d73c2c;
}

.form-actions {
    margin-top: 5px;
}

/* Resultaaten styling */
.resultaten-box h3 {
    color: #b22222;
    margin: 0 0 0.8rem 0;
    font-size: 1.3rem;
    border-bottom: 1px solid #f0e0d0;
    padding-bottom: 0.8rem;
}

#resultaten {
    font-size: 1.1rem;
    color: #333;
}

/* Responsive styling */
@media (max-width: 1300px) {
    .biscoff-flex {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tank-big-container,
    .biscoff-form,
    .resultaten-box {
        margin-bottom: 30px;
    }

    .biscoff-form,
    .resultaten-box {
        width: 45%;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .biscoff-flex {
        flex-direction: column;
        align-items: center;
    }

    .biscoff-form,
    .resultaten-box {
        width: 90%;
        max-width: 400px;
    }

    .tank-big-container {
        margin: 20px 0;
    }
}

.tank-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.308);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Collapsible Section Styles */
.collapsible-section {
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.collapsible-toggle {
    width: 100%;
    padding: 1rem;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    transition: background-color 0.3s ease;
}

.collapsible-toggle:hover {
    background: #e9ecef;
}

.toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.collapsible-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.collapsible-content.active {
    max-height: 400px;
    padding: 1.5rem;
}

/* Specific styling for form groups inside collapsible content */
.collapsible-content .form-group {
    margin-bottom: 1.2rem;
}

.collapsible-content .form-group:last-child {
    margin-bottom: 0;
}

.collapsible-content input[type="number"] {
    width: 90%;
    max-width: 300px;
}

/* Contact Badge Styles - Lotus Theme */
.contact-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(178, 34, 34, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 12px 16px;
    color: rgba(178, 34, 34, 0.6);
    font-size: 0.85rem;
    z-index: 1000;
    transition: all 0.4s ease;
    border: 1px solid rgba(178, 34, 34, 0.2);
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.1);
    max-width: 250px;
}

.contact-badge:hover {
    background: rgba(178, 34, 34, 0.95);
    color: white;
    border: 1px solid rgba(178, 34, 34, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.3);
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.made-by {
    font-weight: bold;
    font-size: 0.9rem;
    color: inherit;
    text-align: center;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(178, 34, 34, 0.3);
    transition: border-color 0.4s ease;
}

.contact-badge:hover .made-by {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-name {
    font-weight: 500;
    color: inherit;
}

.contact-phone,
.contact-email {
    font-size: 0.8rem;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.contact-badge:hover .contact-phone,
.contact-badge:hover .contact-email {
    opacity: 1;
}

/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
    .contact-badge {
        bottom: 10px;
        right: 10px;
        font-size: 0.75rem;
        padding: 10px 12px;
        max-width: 200px;
        background: rgba(178, 34, 34, 0.2);
    }

    .contact-badge:hover {
        background: rgba(178, 34, 34, 0.9);
    }

    .made-by {
        font-size: 0.8rem;
    }

    .contact-phone,
    .contact-email {
        font-size: 0.7rem;
    }
}