:root {
    --leglace-teal: #3aa19a;
    --leglace-teal-light: #cde4e2;
    --leglace-brown: #5d4037;
    --leglace-bg-light: #f9faf9;
    --leglace-border: #dcd0c9;
    --leglace-text: #5d4037;
}

.leglace-calculator-container {
    font-family: 'Fredoka', 'Outfit', 'Inter', sans-serif;
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 24px;
    color: var(--leglace-text);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.leglace-calc-header {
    text-align: center;
    margin-bottom: 20px;
}

.leglace-badge {
    background: var(--leglace-teal-light);
    color: var(--leglace-brown);
    padding: 8px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.leglace-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

.leglace-calc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.leglace-calc-card {
    border: 1.5px solid var(--leglace-brown);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leglace-calc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(93, 64, 55, 0.1);
}

.leglace-card-title {
    background: var(--leglace-teal-light);
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid var(--leglace-brown);
}

.leglace-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.leglace-card-content.no-padding {
    padding: 0;
}

.leglace-card-content input,
.leglace-card-content select,
.leglace-static-value {
    width: 100%;
    border: none;
    text-align: center !important;
    font-size: 18px;
    color: var(--leglace-brown);
    outline: none;
    background: transparent;
    font-weight: 500;
    line-height: 1.2;
    display: block;
    margin: 0 auto;
}

.leglace-hint {
    font-size: 10px;
    text-align: center;
    margin-top: 10px;
    opacity: 0.8;
}

.leglace-option-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.leglace-option {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.leglace-option:last-child {
    border-bottom: none;
}

.leglace-option:hover {
    background: #f5f5f5;
}

.leglace-option.active {
    background: var(--leglace-teal);
    color: white;
}

.leglace-calc-footer {
    text-align: center;
    margin-top: 40px;
}

#leglace-calculate-btn {
    background: var(--leglace-teal);
    color: white;
    border: none;
    padding: 12px 60px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

#leglace-calculate-btn:hover {
    background: #338f89;
    transform: scale(1.05);
}

.leglace-result-container {
    margin-top: 30px;
    animation: fadeIn 0.5s ease-out;
}

.leglace-result-box {
    background: var(--leglace-bg-light);
    border: 2px dashed var(--leglace-teal);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.leglace-result-box.pulse-effect {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(58, 161, 154, 0.2);
    }

    100% {
        transform: scale(1);
    }
}

.leglace-result-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--leglace-teal);
    margin: 15px 0;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .leglace-calc-grid {
        grid-template-columns: 1fr;
    }
}