.calculator {
    max-width: 600px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.calculator h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 24px;
    background: linear-gradient(to right, #2563eb, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 8px 0;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: white;
    font-size: 16px;
    color: #334155;
    transition: all 0.2s ease;
    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='currentColor' 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 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.input-group select:hover {
    border-color: #cbd5e1;
}

.input-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#bnc {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #01b2a6;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

#result {
    margin-top: 24px;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    min-height: 60px;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .calculator {
        margin: 10px;
        padding: 16px;
    }

    .calculator h1 {
        font-size: 24px;
    }

    .input-group select {
        padding: 10px;
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 14px;
    }
}


#result {
    margin-top: 24px;
    padding: 24px;
    background-color: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#result h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
    color: #1e293b;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.result-item {
    display: flex;
    padding: 12px 16px;
    margin: 8px 0;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
    transition: all 0.2s ease;
}

.result-item:hover {
    transform: translateX(4px);
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Style specifically for performance score and bottleneck percentage */
.result-item:nth-last-child(2),
.result-item:last-child {
    font-weight: 600;
    background: linear-gradient(to right, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Add some visual separation before the final results */
.result-item:nth-last-child(2) {
    margin-top: 20px;
}

/* Mobile Responsiveness for Results */
@media (max-width: 640px) {
    #result {
        padding: 16px;
    }

    #result h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .result-item {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Add animation for results appearing */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

#result .result-item {
    animation: slideIn 0.3s ease-out forwards;
    animation-delay: calc(var(--item-index) * 0.1s);
}

.result-item:nth-child(2) {
    --item-index: 0;
}

.result-item:nth-child(3) {
    --item-index: 1;
}

.result-item:nth-child(4) {
    --item-index: 2;
}

.result-item:nth-child(5) {
    --item-index: 3;
}

.result-item:nth-child(6) {
    --item-index: 4;
}

.result-item:nth-child(7) {
    --item-index: 5;
}