.slope-calc-container {
    max-width: 500px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.slope-calc-card {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.slope-calc-title {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: #1a73e8;
    text-align: center;
}

.slope-calc-intro {
    color: #5f6368;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.slope-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.slope-input-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #3c4043;
}

.slope-input-group input {
    padding: 12px;
    border: 2px solid #dadce0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.slope-input-group input:focus {
    outline: none;
    border-color: #1a73e8;
}

.slope-input-group button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.slope-input-group button:hover {
    background-color: #1557b0;
}

.slope-result-area {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    border-left: 4px solid #1a73e8;
}

.slope-result-box {
    margin-bottom: 12px;
}

.slope-result-label {
    font-weight: 700;
    color: #3c4043;
    margin-right: 8px;
}

.slope-result-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a73e8;
}

.slope-explanation {
    font-size: 0.9rem;
    color: #5f6368;
    line-height: 1.5;
}

.slope-educational-footer {
    border-top: 1px solid #e1e4e8;
    padding-top: 16px;
}

.slope-educational-footer h3 {
    font-size: 1rem;
    color: #3c4043;
    margin: 0 0 12px 0;
}

.slope-educational-footer ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    color: #5f6368;
}

.slope-educational-footer li {
    margin-bottom: 6px;
}

@media (max-width: 480px) {
    .slope-calc-card {
        padding: 16px;
    }
}
